jira-automation: set comment containing custom field value

Gabriel MOSCALU March 8, 2016

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

0 votes
Vasiliy Zverev
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.
March 10, 2016

How do you create this notification?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events