Using script runner to evaluate if ticket is from Service Desk

I want to use script runner's fast-track service to put a ticket into a particular status if the ticket comes directly from Service Desk.  I think I should be able to do this by checking that there is a value for the field "Customer Request Type" and can see that using JQL like this

"Customer Request Type" is not EMPTY

But am having trouble doing that.  I tried:

cfValues[‘Customer Request Type']*.value.contains("")

But obviously that does not work.

Anyone know how to do this?  

1 answer

1 accepted

This widget could not be displayed.

For non-empty, you just need:

cfValues[‘Customer Request Type'

Thanks Jamie... you are always appreciated. I think it is missing a closing "]" but that is the right answer

I blame the rich text editor ;-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 13, 2018 in Jira Service Desk

Jira Service Desk – Don’t be afraid, the journey begins with curiosity!

...be more productive while being fun to use at the same time. For some, getting started can be a bit intimidating. This is especially true if Jira Service Desk is your first exposure to Atlassian...

10,697 views 9 28
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