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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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