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

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
Asked Thursday in Jira Service Desk

Looking for teams who switched from email to Jira Service Desk

The Jira Service Desk marketing team is working on a guide to help new Atlassian customers switch from email to JSD and we'd love to hear from you! Please share: - What made you realize that i...

209 views 1 5
View question

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