Change the custom field value based on status.

We have close to 10 statuses in a workflow. We would like to have a custom field with 3 values, depending on the statuses we would like to change the custom field value.

The objective is to group statuses and have only three values in the issue statistics gadget.

2 answers

1 accepted

Accepted Answer
1 vote

Hello,

You can add a post function to the transition of an issue that will change the value of the custom field everytime it was clicked.

That way, the value of the custom filed will be changed depending on the status.

ex. (let's say your 3 values in the custom field are "Group 1", "Group 2", "Group 3" and you have the statuses: "Open", "Awaiting Review", "In Progress", "Passed Testing", "Deployed" & "Closed")

Group 1:

*Open

*Awaiting Review

Group 2:

* In Porgress

* Passed Testing

Group 3:

* Deployed

* Closed

Using the example values above, once the "Awaiting Review" status is changed into "In Progress" or "Passed Testing" the value of the custom field will be changed into "Group 2"; on the other hand, the custom filed will have a value "Group 3" if the status is changed either to "Deployed" or Closed

Hope this helps..

Hi,

Thanks for the solution.

We already have many issues created. Any solutions for the existing issues.

With the same concept above.. create a transition (one that can only be seen by selected group) that will return the issue to its current status but will enact the post function to change the value of the custom field intended for that status. Then just use the bulk change -> Transition Issues -> (Make sure to click the transition that will return the issue to its current status.).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

465 views 7 5
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