JQL expression with custom field issue

Trevor Overstreet December 6, 2022

Hi!

I'm trying to automate and update the Summary field to reflect a select list field choice.

Below is my expression however I believe there's an issue due to the field name.

Field name:   Client List | CID

Now when I remove the bar "|" and update the field name to use "and" the expression works. I would prefer to use the expression with the bar |

 

{{issue.summary}} - {{issue.Client List | CID.value}} did not work

{{issue.summary}} - {{issue.Client List and CID.value}} worked

1 answer

1 accepted

3 votes
Answer accepted
David Freitez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 6, 2022

Hi @Trevor Overstreet

Unfortunately, the character: |  is used to denote a default value for the smart value in Jira Automation.

image.png

Taken from:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Please note that you can also refer the custom field with another name, through its ID, like:

 {{issue.fields.customfield_10020}}

Hopefully this answers your question.
David

Trevor Overstreet December 6, 2022

Thanks David! I had no idea the bar was used for default values.

The custom field option worked so much appreciated!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events