Code to get all the resolutions of issue in Jira

Hi All,

 

I want to get all the resolutions related to issue in jira.

Please let us know the code to get all the resolutions related to issues in jira.

 

Thanks

Suresh

2 answers

In Java you can do this:

ComponentAccessor.getConstantsManager().getResolutionObjects();

This will return you all resolutions defined in the system - as mentioned in the other answer, they apply to all issues and are not specific to a project or issue type.

0 vote

You don't need code.  Look at Admin -> Issues -> Resolutions.

Or just go visit an issue that is ready to be closed and has a resolution field on the close screen - the drop-down lists the options (although some people do customise that list, so the better option is the one above)

If that doesn't answer the question, you'll need to explain more.  Why do you need "all the resolutions" and what are you aiming to do with them?  And what code?  (internal, add-on, Connect, REST, something else?)

Hi Nic,

Thanks for your reply. Through the UI I know, how to see all the resolutions.

But using JIRA API, I want to get all the resolutions of an issue, to display them in my plugin's page. And also, are the resolutions are common to all the issue types or specific to issue type.

If specific to issue type, may I know the code, to get all the resolutions specific to an issue type in project.

 

Resolutions are a global list.

>I want to get all the resolutions of an issue

That's nonsense, as an issue is either unresolved (no resolution) or resolved, with $issue.getResolution() returning the resolution.

Mahesh S Community Champion Jun 16, 2016

It is not specific to issue type.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,232 views 14 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot