Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to recognize the proper Custom Field name to use it in formula

Emilia KASPRZYK
Contributor
April 20, 2023

Hi 

noob question ;).

how to recognize the proper Custom Field name to use it in formula like that {{issue.custom_field.accountID}}

for example i have field named Responsible Main Vendor. 

What to do with spaces in the formula?

 

Thx in advance

Emilia

 

2 answers

1 accepted

4 votes
Answer accepted
Ian Carlos
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.
April 20, 2023

Is this for JQL? If you have a text with spaces inside of it, use "the double quotes" so Jira could recognize it as a unit

"Responsible Main Vendor" = "John Smith"

Emilia KASPRZYK
Contributor
April 20, 2023

Simple, thx ;)

Alex Koxaras _Relational_
Community Champion
April 20, 2023

@Ian Carlos you can't use double quotations on a smart value

Ian Carlos
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.
April 20, 2023

Sorry, I didn't know, this is how usually I perform my JQL, which is the proper way?

Alex Koxaras _Relational_
Community Champion
April 20, 2023

On a JQL that would perform well if you had use the auto-complete. E.g. when typing "Responsible Main Vendor" depending on what that field's type is, you would get something like "Responsible Main Vendor[Text]" or "Responsible Main Vendor[Dropdown]" and then you would use the ' = "John Smith"'.

But smart values do not take quotations https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Emilia KASPRZYK
Contributor
April 21, 2023

Hi it works with double quotation, works very well thx ;)

Alex Koxaras _Relational_
Community Champion
April 21, 2023

Well, it's always good to learn new things! It works indeed!

0 votes
Alex Koxaras _Relational_
Community Champion
April 20, 2023

@Emilia KASPRZYK hi,

You have two ways to insert a field on a smart value:

  • {{issue.CUSTOM FIELD NAME}} with proper spaces and capitalization e.g. {{issue.Responsible Main Vendor}}
  • {{issue.customfield_XXXXX}} where XXXXX is the id of the custom field. To find this out:
    • go to cog wheel (upper right corner) > issues
    • custom fields > search for the custom field
    • Click the ellipsis menu > Edit Details
    • See the id on the URL address bar of your browser, which will look like this /secure/admin/EditCustomField!default.jspa?id=10038

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events