Forums

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

Conditional transition in workflow with and without a screen

Inessa Muradyan
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!
April 23, 2022

Would appreciate help with setting up the transition in the workflow for the following conditional scenarios.

I have a transition to Done from all statuses with a screen where there is a validator for adding closing comments. However, I would like to have a condition for the screen not to pop up if there has been a comment added during n number of days prior to the transition. Can't work this out with the existing conditions. I read there is a way for having two separate transitions with and w/o a screen, but I would need some guidance on how to set this up. 

Thanks!

 

2 answers

0 votes
Alex
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.
April 23, 2022

Hi @Inessa Muradyan 

I go along with what @Fabian Lim suggested and if your Jira site does not have any of the plugins mentioned, perhaps you can create an automation to run daily and calculate the number of days from the latest comment and update a number field, from there use the field on the workflow condition "Compare Number Custom Field".

I hope it helps,

Cheers,

Alex

0 votes
Fabian Lim
Community Champion
April 23, 2022

Hi @Inessa Muradyan

In order to acomplish this you will have to create additional transitions from all statuses to done and have no transition screen. Then you will need a condition on all these transitions to check that components has been filled. The "all" transition will be the one with the screen. 

Now the issue is that you may need a plugin like jmwe, power scripts, or scriptrunner to check the n days condition you mentioned. 

Regards

Suggest an answer

Log in or Sign up to answer