Fast Track Transition: Condition not met for status

I'm having issues with my fast track transition not firing with the below condition for status.  I must not have the correct syntax for the Condition to be met.  The condition is Status='Approved-Company Car'.  Can someone help clarify what I'm doing wrong here?

 

image2014-9-24 9:19:6.png

2 answers

This widget could not be displayed.

Hi,

You can use the following to retrieve the status name:

issue.getStatusObject().getName()

If you define a scripted field, you can quickly test such a condition with a specified issue key.

Kind regards,

Geert

This widget could not be displayed.

Hi @Geert Graat,

 

Thanks for the response.  I'm still a little unsure how to get this working properly.  I've input the following now for the condition.  Do I need to specify the issue key for getStatusObject()? Also, do I need to specify anything in the brackets for getName?

 

issue.getStatusObject().getName() == 'Approved-Company Car'

issue.getStatusObject().getName() is exactly the same as issue.statusObject.name You don't specify any key because you have the issue in the "issue" variable...

@Jamie Echlin [Adaptavist] Thanks, Jamie. Makes sense. It's still not working for me with condition= issue.statusObject.name == 'Approved-Company Car' This is a custom status I created. I tried removing the space between "company" and "car" to see if that would work... still nothing. I'm out of ideas now.

maybe you have a trailing space or something on your status name. Is the condition tester there? If so try: assert issue.statusObject.name == 'Approved-Company Car' (just to test) and post the output.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

158 views 2 0
Join discussion

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