Groovy snippet for fast tracking except on Create transition

Heather Rimmey December 30, 2019

Hi,

I've used scriptrunner to create a fast-track transition whenever the assignee is updated on a ticket. I didn't foresee the use case where the project had the assignee defaulted to the Project Lead so it's triggering the fast-track even on Create. I'm looking for a groovy snippet to enter as a Condition to ignore the fast-track if action is on Create. Any suggestions?

 

2 answers

1 accepted

1 vote
Answer accepted
Heather Rimmey December 30, 2019

Thanks Bryan, but I think I figured it out! Putting this as the Condition seems to get the job done

issue.getStatus() == null
0 votes
brbojorque
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2019

Hi @Heather Rimmey ,

Show us your script so we can check.

Pseudocode.

  • What you can do is check who is the Project Lead on the project.
  • If the Assignee on the Create Screen is the same as the Project Lead
  • Then skip the whole fast-tracking process

Suggest an answer

Log in or Sign up to answer