• 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 vote

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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

231 views 2 11
Read article

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