how to set the resolution based on the status?

Nagarguna Reddy September 25, 2012

as of now status and resolution are different. i'm trying to configure resolution should be changed based on status update.

where should this be configured

6 answers

1 accepted

11 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 25, 2012

They are two separate things, with no link between them.

Resolution is a field on issues. Status looks a bit like a field, but is a label for "position in workflow". There's nothing that technically ties them together.

What you actually need to do is check/amend your workflow. Each movement from one status to another is a "transition". You can add three important things to these to handle resolution

1. You can use a *post function* to CLEAR the resolution

2. You can use a *post function* to SET the resolution

3. You can use a *screen* on the transition - if you put the resolution on that screen, then the user using the transition will be shown the resolution and can set it there.

In other words, you don't associate resolution and status, you look at how status changes and then set the resolution as part of the change.

I suspect there's more depth to your question though, so I expect more questions...

3 votes
MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2012

You would do it throug the workflow, set a post function to update a field value. When you activate a transition from state A to state B, you set the resolution

https://confluence.atlassian.com/display/JIRA/Configuring+Workflow#ConfiguringWorkflow-Usingapostfunctiontosetafield

eb_purdys April 6, 2018

This worked perfectly for me, thanks.

0 votes
nnezry January 16, 2020

Hi,

If i set post function on status field will it impact all the jira projects? 

Can i isolate it to affect one project? 

Pedram Mireftekhari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 21, 2020

Post functions are applied to workflows, so if the workflow is used in other projects, this will impact other projects as well. In workflow in setting you will see that the workflow is used by how many projects and which projects are using the workflow.

You need to have Jira admin right to do this.

0 votes
Yasmine Rifai January 16, 2014

Thanks alot, Can we add a new value to those options listed in the "Update issue field"

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2014

No, it only covers the built-in fields. You'll need to find a post-function that can "update custom fields" if you want to amend other fields. There's one of these in several plugins, I tend to use the one in the "jira suite utilities"

0 votes
Yasmine Rifai January 14, 2014

Hello, I am trying to use postfunction to edit resolution for transitions but I cant find in the list "Clear" or "Set" reolution. Which one should I choose in order to set the resolution? thanks

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2014

Look for the post-function called "Update issue field". It will ask you to choose one of the system fields (assignee, reporter, resolution etc) and then ask you for an appropriate value to set. When you choose resolution as the field, you should get the full list, as well as "none" which will be shown as "clear resolution" when you save the post-function

0 votes
Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2012

Hi, you may create a post function to update the status on transition. This can then set the value of resolution to anything you like on any transition that occurs to another status.

Nagarguna Reddy September 25, 2012

Unable to edit the workflow

Nagarguna Reddy September 25, 2012

i opened the workflow in edit mode and see the status. If i have to add any properties, what should i add

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 25, 2012

Why?

You need to give a bit more information than that. (Off the top of my head - you need to be a system administrator and you can't edit active workflows - look for "create draft" and you'll be able to edit and publish there)

If you're not an admin, then tough, you'll need to talk to your admins to get your workflow changed.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 25, 2012

Agreed, please read Matthew's link, and check my answer for a quick summary of the bits of that page apply in your case.

MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2012

You're not adding properties on a state, you need to add a postfunction to a transition between states that populates the resolution field. See answer above for link with example. If you're looking for resolution to automatically take on a value because it's in a state, it doesn't work like that. Also be aware that when you put a value in the resolution field, Jira will consider it "Resolved" and it will not appear in "Unresolved" reports

Suggest an answer

Log in or Sign up to answer