Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Condition to execute transition with previous status

Dario Alarcón September 25, 2023

Hello community, I am needing help creating an automation.

Context:
- I have the following workflow, I need to add a conditional in the automation that allows me to transition from the "TAKING EXAM" state to the state marked with the letter C or D

WF.png

- The condition must be: if the issue passed through state B at some point in the workflow, then transition to state D

Is there any JQL search or smart value to apply that condition?

Note: the conditional is already configured in the WORKFLOW, but I need to specify it in an automation.

I have the automation set up as follows, but I am open to reading your opinions:

Captura .png

 

Thank you very much in advance for your collaboration.

2 answers

1 accepted

2 votes
Answer accepted
Trudy Claspill
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, 2023

Hello @Dario Alarcón 

Looking at the first image in your original post you could modify the JQL in the trigger to include

AND status WAS "Certification Attempt 2 Planned"

That will result in limiting your selection to the issue that did, indeed, exist in the B status at some point in the past.

If you don't want the clause within the Trigger then you can add it as a Condition thus

Screenshot 2023-09-25 at 2.36.22 PM.pngScreenshot 2023-09-25 at 2.36.07 PM.png

Dario Alarcón September 25, 2023

@Trudy Claspill thanks for your help!

I was able to solve it. 🙌🙌🙌

Like Trudy Claspill likes this
0 votes
Dario Alarcón September 25, 2023

I was thinking of using the following "if" block: Advanced compare condition
But I don't know how to write the smart value referring to state "B"

Captura 1.jpg

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events