How to change the selection in Resolution field depending on IssueType

Hi,

I'd like to switch a list of the selections in 'Resolution' field depending on the IssueType.

Also, I want to change the default value in each IssueType if possible.

Is there any way to do this?

Thanks,

hiro

3 answers

1 accepted

2 votes

Actually, the best way to do this is to include/exclude resolutions on workflows and have different workflows for different issue types.

See Workflow Properties for the property details.

Thank you very much for the info.

The workflow properties works fine for filtering the resolutions.

0 vote
Mizan Community Champion Dec 03, 2012

You can use Javascript in the description of resolution field which will check for Issue type and based on that set the resolution

javascript examples here https://confluence.atlassian.com/display/JIRACOM/Using+JavaScript+to+Set+Custom+Field+Values

You can also use the behaviours plugin and write a groovy script which will set the resolution field based on issue type .

Behaviours example here https://studio.plugins.atlassian.com/wiki/display/JBHV/JIRA+Behaviours+Plugin#JIRABehavioursPlugin-Setonefieldbasedonanotherfieldwithinformationprovidedbytheserver

Thank you very much for the prompt reply.

However, I couldn't find a place to specify the JavaScript in Resolution field.
The Resolution field is not a custom field. I guess that's the reason.
Am I misunderstanding?

Mizan Community Champion Dec 03, 2012

You can enter the javascript in the description of the resolution field . I have tried javascript on Jira fields earlier.

I have never used javascript on descriptions, just on Default values of custom fields. And it works. But Resolution haven t got default value to enter javascript. So this I think it would be better use a groovy script on Behaviours.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

779 views 2 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