jira-automation: set comment containing custom field value

Hi,

 

I am trying to set a specific comment when a certain ticket type is created, and I need to show a custom field value.

 

The automation rule is set as follows:

 

Rule Name: Send Incident creation notification on CRITICAL
Status: ENABLED
Actor: level1

Trigger Type: Issue Event Trigger
Issue Event: ISSUE CREATED
JQL expression: issuetype=Incident and Severity=Critical and project in (MY_Project_Template)

Actions
Comment Issue Action
Comment:
NEW Incident notification
||Item||Description||
|Ticket number|$issue.key|
|Description|$issue.summary|
|Start Time (CET)|$issue.created|
|Status|$issue.status.name|
|Market affected|$project.name|
|Service(s) affected|Installation of services & $issue.customfield(12003)|
|Next update (CET)| <TBD>|
|End Time (CET)|<TBD>|
|Impact:|Service installation not working|
|Resolution|To be provided|
|Root cause|To be provided| 

Comment Visibility: Viewable by All Users
Send notification?: Yes

 

When I create such a ticket (Incident/Critical), the comment is set, but the customfield value is not expanded - it is listed as it is:

 

NEW Incident notification

ItemDescription
Ticket number<correct ticket ID>
Descriptiontest #3
Start Time (CET)2016-03-09 00:16:00.0
StatusNEW
Market affectedMY_Project_Template
Service(s) affectedInstallation of services & $issue.customfield(12003)
Next update (CET)<TBD>
End Time (CET)<TBD>
Impact:
Service installation not working
ResolutionTo be provided
Root causeTo be provided

 

Can anyone help me understand how to get this CF value displayed?

 

Thanks,

Gabriel

1 answer

How do you create this notification?

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,138 views 6 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot