Condition for fast-track transition doesn't work.

Hi.

I want to do a fast track transition with the following condition, but it doesn't work...

issue.assignee.getName() != 'dispatcher'

--> It is the issue creation transition.

 

Thanks in advance.

Petra

3 answers

0 vote
Peter Bengov Community Champion Dec 11, 2014

Issue creation transition doesn't have conditions (only validations and post functions).

Thanks a lot for your fast answer.
I think, I have to add some more information...

I used script-runner function fast-track as post function.

There I defined the condition.ScreenShot00035.jpg

Hi, The condition seems to be ok. Is the transition valid from current status to use the DISPATCH transition?

Hmm... is the assignee field filled? If the assignee is not present then you will get NullPointerException with this condition... maybe try {code}issue.assignee?.name != "dispatcher"{code}

The assignee is filled automatically with the component lead. I'll try the other syntax. Thanks a lot for your help.

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 Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

110 views 0 3
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