I have switched my language to RU in personal settings.
Now I get issues with
"issuetype": {
"self": "https://avelytchenko.atlassian.net/rest/api/2/issuetype/10000",
"id": "10000",
"description": "Подборка похожих историй, заданий и связанных с ними ошибок.",
"iconUrl": "https://avelytchenko.atlassian.net/images/icons/issuetypes/epic.svg",
"name": "Эпик",
"subtask": false
},
against English it looks like
"issuetype": {
"self": "https://avelytchenko.atlassian.net/rest/api/2/issuetype/10000",
"id": "10000",
"description": "A big user story that needs to be broken down. Created by JIRA Software - do not edit or delete.",
"iconUrl": "https://avelytchenko.atlassian.net/images/icons/issuetypes/epic.svg",
"name": "Epic",
"subtask": false
},
so I can not rely on issue.field.issuetype.name === ‘Epic’
next-gen projects have epics also, so I can not rely on stored array of issuetype ids because projects can be added any time.
That response has 3 levels. 0 is the base level for bug story etc, -1 is subtasks and 1 is epics. It looks like the new API is designed for arbitrary hierarchies but currently you can just look for the issue type at level 1.
For classic projects on Jira Cloud there is no public API to determine the Epic issue type. To determine the Epic issue type we try 3 things in this order.
From the list of fields look for the Epic Name field as it’s only available on Epics and has a well known schema: “com.pyxis.greenhopper.jira:gh-epic-label”. If the user has removed the Epic Name from their screen configuration this will fail.
Look for an issue type called “Epic” this will obviously only work on English instances that haven’t renamed their issue type.
This is just a heuristic and occasionally none of those mechanisms work. In that case we display an error message and ask the user to add the “Epic Name” field to their screen configuration or contact us for support.
3 steps and contact support looks a little bit complicated and not exact.
Cloud have 22 languages and Epic has same name at EN, DE, FR. So it is possible to create an list of names and check if it contains issue.field.issuetype.name. It seems more simple and more exact.
Hi @avelit,
thank you for expressing your interest in this feature.
This is currently being tracked by [ACJIRA-1309] - Ecosystem Jira .
We don’t currently have an ETA for this, but we can prioritise it if there is interest in it.
Simone