We are developing an add-on for Jira Cloud, and there is a need to check if there is an issue type “Epic” in the project or not.
Currently, we are doing that by:
- Getting all issue types of a project by using API
expand= issueTypesquery parameter.
- After getting the result, simply checking if there is an issue type name “Epic” or not in
issueTypesarray in the result.
This works fine if the language of the site is English. But if the language of the site is not English, then the name of the issue type in the result that Jira API sends back will be in the site’s language. It is not “Epic” anymore.
Is there any way to check if there is an issue type “Epic” in the project that works despite the language of the site? I don’t wanna translate the word Epic to multiple languages and then compare it to the name of the issue type that Jira API sends back. It isn’t a feasible solution, to begin with.