Create SubTask with Groovy Scrupt Runner after paretn task created based on custom field value

I'm using the built in script in the workflow editor.

When leaving the condition blank it creates the sub task automatically.

When I have cfValues['customfield_10400'] == 'Internal'

OR cfValues['Customer'] == 'Internal'

Doesn't crate teh sub task

The customer field is a mutil select option box not a straight forward text entry box....

Any ideas?

Thanks

1 answer

I didnt read the advanced section of the documenation

This worked for me.

cfValues['Customer']*.value.contains("Internal")

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,137 views 4 9
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