• 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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,532 views 15 21
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