Change the custom field value based on status.

saba May 28, 2014

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

1 vote
Answer accepted
Haizelyn Casimiro May 28, 2014

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..

saba May 28, 2014

Hi,

Thanks for the solution.

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

1 vote
Haizelyn Casimiro May 28, 2014

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.).

Balasanthanam Pillai September 14, 2020

Which post-function we have to use

Suggest an answer

Log in or Sign up to answer