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
Published Feb 13, 2019 in Jira Service Desk

What's new in Jira Service Desk Server: Introducing 4.0 & more - Feb 2019

Hello Atlassian Community!  I'm Teresa, the Product Marketing Manager   for Jira Service Desk Server at Atlassian. I'm excited to announce two exciting releases for Jira Service De...

363 views 1 1
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