Forums

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

how to access custom field content in jira automation

Aditya Aryasomayajula May 26, 2020

Hi

I have a custom field created called "Due date change reason". This is a multi-line text box which accepts users input wherever the due date is changed. I am trying to access the contents of this custom field to display in the comments section. So far I was able to do this:

{{reporter.displayName}} has changed the due date to {{issue.duedate}} and the reason was {{issue.Due date change reason.value}}.

I do not see the contents being displayed. Could you please give me the correct syntax for accessing the contents of the custom field text box. Thanks.

1 answer

1 accepted

4 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2020

Hello @Aditya Aryasomayajula

Thank you for reaching out.

Per your description, I understand you would like to create an automation rule to comment on an issue when something happens, using smart values to reference the content of some fields in the comment (Reporter, due date, and the custom field "Due date change reason"). Is that correct?

To display the custom field value, you must add the id related to the custom field. These would be the steps to find it:

  1. Navigate to Jira Settings > Issues > Custom fields > Click in ... > "Edit details" at the "Due date change reason" custom field
  2. Copy the Custom field ID from the URL (id=xxxxx)
  3. Add the custom field ID in the comment of the Automation rule, updating "xxxx" with the current field ID:
    {{reporter.displayName}} has changed the due date to {{issue.duedate}} and the reason was {{issue.customfield_xxxxx}}.

Let us know if you have any questions.

Aditya Aryasomayajula May 28, 2020

Thanks Petter. Worked like a charm.

Fouad El-Gendy
Contributor
February 12, 2024

Appreciate it @Petter Gonçalves

Suggest an answer

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

Atlassian Community Events