Use issue type in payload for Slack message

Drew Nedderman August 30, 2017

How can I include the Issue Type in the payload for a Slack message that is created by Automation for JIRA?

 

Here's the payload that I'm using:

Hi name, {{issue.fields.issuetype}} <https://atlassian.net/browse/{{issue.key}}|{{issue.key}}> has been created with Priority of {{issue.fields.priority.name}}.
{{reporter.displayName}} created <https://.atlassian.net/browse/{{issue.key}}|{{issue.fields.summary}}>
 Issue Description:
```{{issue.fields.description}}```

 

Thank you!

1 answer

1 vote
andreas
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.
August 30, 2017

Hi Drew,

 

You need to access the 'name' attribute like this:

{{issue.fields.issuetype.name}}

For more information please see https://codebarrel.atlassian.net/wiki/spaces/AUTO4J/pages/27656216/Smart+Fields

 

Cheers,

  Andreas

Ezraa Douglass May 22, 2023

Thanks Andreas!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events