Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • 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

Jyotiprakash Nayak March 8, 2017
 

1 answer

0 votes
Nic Brough -Adaptavist-
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.
March 8, 2017

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?

Jyotiprakash Nayak March 8, 2017

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.

Nic Brough -Adaptavist-
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.
March 8, 2017

What does "epic some field" mean?

Jyotiprakash Nayak March 8, 2017

it means any field in that epic

Jyotiprakash Nayak March 8, 2017

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.

Nic Brough -Adaptavist-
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.
March 9, 2017

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