Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a status based on the custom field value present on the transition screen

Venkateshwara Rao cherala
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 19, 2021

Hi 

 

We have one requirement on the workflow like, we have three Statuses A, B and C. 

From Status A to Status B on the transition screen we have one Radio button field Approved with the values Yes or No, If I select the value Yes then the issue will sits in the status B, if we select No then the issue will sit in the status A. We have the add-ons JSU, JMWE and script Runner. Could you please suggest any solution for this requirement. I am attaching the sample image for the requirement Please find the image.

Thanks in advance.Workflow.png 

2 answers

0 votes
David Fischer
Community Champion
March 19, 2021

Using JMWE you have two options:

  1. use the Transition Issue post-function to trigger a transition from Status A to Status B (you can hide that transition from users using a Hide from users (JMWE app) Condition), using conditional execution to test the value of the radio button, but you first need to change your current transition to stay in status A (that applies to Leo's suggestions as well).
  2. use a Set Field Value post-function to conditionally reset the status to Status A if the Approved radio button is checked.
0 votes
Leo
Community Champion
March 19, 2021

Hi @Venkateshwara Rao cherala,

I believe this can be achieved by all 3 plugins you use. I don't have JMWE to check the suitable post-function but for others as below

Using Scriptrunner

1. You can use fast-track transition post-function and add condition to check Approved field value if yes selected transition(B) will be executed

 

JSU

1. can do the same using Linked transition

2. Link as JQL --> key = {issue.key}

3. you need to precondition(JSU) to validate approved field 

 

Hope this helps

 

BR,

Leo

Venkateshwara Rao cherala
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 23, 2021

Hi Leo,

 

Thank you for your answer, I am not able to achieve the requirement, Could you please explain further. 

Thank you in advance!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events