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

0 vote
Vasiliy Zverev Community Champion Mar 10, 2016

How do you create this notification?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

119 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