• Community
  • Products
  • Jira
  • Questions
  • Is there any way to configure groovy script for an action in response to status transition to COMPLETE status using validators

Is there any way to configure groovy script for an action in response to status transition to COMPLETE status using validators

 

1 answer

0 votes

Possibly, but you really don't want to do it with validators.

You should only do things that make changes in transitions during post-functions (or listeners that happen even later).  Validators are totally the wrong place.

So, the question is - what do you want to do when the issue moves to complete?

is it possible to verify  Epic->some field contains value, when Task " is set to completed.

The task should not be able to be set to Completed, if the Epic->that field is not set.

What does "epic some field" mean?

it means any field in that epic

the requirement is that whenever a task is set to complete ,it should inspect the value of a field named ' Documentation Update' in the parent epic to which the particular task is linked . In case the value is not provided, the transition should not be allowed.

That's another requirement again.  The best way to do that is in a "condition", as that would stop the user starting the process to change the status.

However, neither conditions or validators can be scripted on Cloud yet.  So I don't think there's any way to do this.

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

2,788 views 11 18
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