Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using conditional execution with customer single-select custom field

I'm configuring a "create issue" post function with a "conditional execution" added so that the Create Issue should only run if/when custom field (a Single Select List) is set to "XYZ"

I've tried 

{{ issue.fields['Products Impacted'].value == "XYZ" }} but this is always returning false no matter whether null, set to XYZ or set to something else 

Thanks for the help!

1 answer

1 accepted

0 votes
Answer accepted

Hi @Simon Tilbury ,

Can you please check below points on this.

  • Test the condition against an existing issue for all the scenarios.

  • If you still get false for all the scenarios, navigate to Settings > Issues > Custom Fields > Search for 'Products Impacted' >  Click on .. against it and click 'contexts & default value > check for XYZ value > Edit it and check if you have any spaces before or after XYZ. If any space exists please remove the spaces & save. Try the scenario.
    Screenshot 2021-11-09 at 11.10.01 PM.png
  • Alternatively, you can make use of below code. In below code, instead XYZ as value you can give the option id of the selected value.

    {{ issue.fields[
    'Products Impacted'].id == 10001}}

  • Please note that you will be able to see option id once you click on Edit against select option. Please refer below screenshot.
    Screenshot 2021-11-09 at 11.16.00 PM.png




I had originally used

issue.customfield_17082.value == "XYZ" 

I then changed to (but didnt work) == 16942

I then changed to and this worked

issue.fields['Workstream'].id == 16942


Many thanks for the helpful/clear explanation. Much much appreciated! :) 

Thanks @Simon Tilbury , Glad to know that configurations are working as expected.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

92 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you