How to control the "Resolution" value?

How do I control what the Resolution value is? Whenever I complete and issue and mark it as Done, the resolution stays as "Unresolved". How do I change this? 

2 answers

0 votes

Please, do not say "resolution status".  Resolution and Status are totally separate things.

The problem you've got here is that you've customised your workflow and removed the things that were setting the resolution field when you get to the end of an issue's lifecycle.

Have a quick look at the default JIRA workflow, as it's a good stable example.  In there, the users have decided that both status of "resolved" and "closed" should be "ended", and hence, if you look at the transitions into those status, you will find that they have a Screen that contains the resolution field, which means the user is asked for and always sets a resolution.  (You can also do that with a post-function if you don't want to ask the user for a resolution).  On the way out of those status and back to any of the others where an issue should be "unresolved", you will find a post-function that says "clear the resolution field".

You need to do the same in your workflow.

Hm, i didnt realize it relied on the resolution field being in a screen. Seems a bit wonky. I'll take a look at it.

EDIT: Also, I have no idea what post-functions are...

It's a bit of a hangover from JIRA 1, and something I've always thought was clunky and needed changing (I'd group status together into meta-status, rather than a simple open/closed)

A post-function is a workflow artefact - it's "something to run when a transition executes".  There's a standard 5 of them added to transitions by default to do things like fire events, update the index, save the issue etc, but you can add your own.  Including set/clear resolution.

0 votes

Edit the workflow and add the :Resolve issue screen' to the transitions that go to Done.

That does not allow the value to be reset to NULL in the database, which is required for an "Unresolved" status.

Jason is right here, you can not clear the resolution in a transition by using a screen.  You need to use the transition method stated in my answer - clear the resolution in a post-function

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

159 views 3 6
Read article

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