Parent Task automatically input in Field value when Sub-tasks are in a higher status Edited

Hello,

I'm having an issue with automatic transitions in Jira Cloud. I have set post-functions using JMWE that automatically transitions my parent task when the all sub-tasks are in a higher status. For most of my transitions this works as expected, however for one of my transitions it will not work at all.

The only difference between this transition and the others is that it has a transition screen with a validator that requires "Time Spent" to be inputted before a task can transition. 

I've tried the below in the post-functions, however it does not work for me and the parent task stays in the same status. 

Post functions.JPGIs there something that I'm missing? Or is there a way that I can set parent tasks to ignore a validator without it impacting standard tasks or sub-tasks transitions?

 

Would ideally like to do this without having to install another plugin. 

 

Many thanks,

 

Joshua

1 answer

1 accepted

1 vote

Hi Josh,

The simplest solution that I can see here is to create two different post functions. The first should set the value for your custom field in the parent issue and the second one will transition it. This way by the time the transition kicks off your parent issue will already have a value and thus will pass transition validation.

Another possible solution is to create a separate transition without any screens and validators and simply hide it from users using 'Hide transition' condition. And then use transition in your post function.

Hi Ivan,

Will this bypass the validator for "Time Spent" though? The time spent field is not a custom field, it is the time tracking function within Jira.

I will test these both now and then come back to you. Thank you.

Hi Ivan,

 

Thank you very much, the second option worked!

Ivan Tovbin Community Champion Dec 11, 2017

Hi Josh,

Glad I could help. Have a great day!

Cheers.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,203 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot