Message format for JIRA Cloud
Basic format
{
"text":"${eventType} ${issueLink} in ${projectLink} by ${userLink}"
}New format
{
"text":"<eventType> <issueLink> in <projectLink> by <userLink>"
}Advance format
{
"text":"${eventType} ${issueLink} in ${projectLink} by ${userLink}",
"attachments": [
{
"color": "#205081",
"text": "${eventMessageBody}",
"fields": [
{
"title": "Type",
"value": "${issueType}",
"short": true
},
{
"title": "Assignee",
"value": "${issueAssignee}",
"short": true
},
{
"title": "Creator",
"value": "${issueCreator}",
"short": true
}
]
}
]
}New format
{
"text":"<eventType> <issueLink> in <projectLink> by <userLink>",
"attachments": [
{
"color": "#205081",
"text": "<eventMessageBody>",
"fields": [
{
"title": "Type",
"value": "<issueType>",
"short": true
},
{
"title": "Assignee",
"value": "<issueAssignee>",
"short": true
},
{
"title": "Creator",
"value": "<issueCreator>",
"short": true
}
]
}
]
}Metadata
Key | Description | Example data |
|---|---|---|
${eventType} <eventType> |
| E.g : "New issue created" |
| It uses issue summary for displaying |
|
| It uses issue key for displaying |
|
${issueKey}
| This is issue key | e.g : TEST-1 |
${issueSummary} <issueSummary> <issue.fields.summary> | This is issue summary | e.g : Cannot find attachment |
<issue.fields.project.key> <issue.fields.project.name> | Project meta data | JS Support |
| This is project link |
|
<user.key> <user.emailAddress> <user.displayName> | Action user meta data |
|
| It is action user on issue |
|
| issue description or comment |
|
| number of attachments in issue |
|
| current assignee |
|
| issue creator |
|
| Fixed, Won't Fix ... . You can define resolution data in JIRA |
|
|
|
|
|
|
|
| "Done,Open" |
|
| "Bug,Improvement,Feedbacks" |
|
| e.g : Task, Story, Epic, Subtask |
|
<comment.body> <comment.created> <comment.updated> <comment.author.displayName> <comment.updateAuthor.displayName> | Comment metadata |
|
<issueComponents> | e.g : Development,Front End |
|
Screenshot