Default Message Template
Code Block | ||
---|---|---|
| ||
{ "text":"<eventType> in <spaceLink> by <userLink>", "attachments": [ { "color": "#205081", "title": "<contentTitle>", "title_link": "<contentLink>", "text": "<contentBody>" } ] } |
Insert excerpt | ||||
---|---|---|---|---|
|
Basic Template Keys
These are available on all actions:
Key | Data | Description |
---|---|---|
<spaceLink> | <Test Space Name|http://localhost:1990/confluence/display/TEST> | A link to the space, formatted for inclusion in a Slack message. |
<spaceKey> | TEST | A space key |
<contentTitle> |
| A page, blogpost title, task, question |
<contentLink> | http://localhost:1990/confluence/display/TEST/This+is+a+page+title | A URL to the page, blog, task, or question |
<contentBody> | This is some example page content. | An excerpt of page, blog, task, comment |
<userLink> | <admin|http://localhost:1990/confluence/display/~admin> | A link to the user, formatted for a Slack message |
<userName> | admin | A username |
<eventType> |
| Text describing the current action. |
<event> | EventType_CreatedPage | An event code |
Advanced Template Object Attributes
Attribute | Actions | Description | Example Usage |
---|---|---|---|
isNewPage isNewBlogpost isNewComment | All | Returns a boolean that can be used with StringTemplate if statement expressions. |
|
page | Page Created | A page object |
|
blogpost | Blog post Created | A blogpost object | |
space | All | A space object | |
comment | Comment Created | A comment object |
|
question | Questions Created | A question object | |
answer | Questions Created | A answer object | |
task | Task Created | A task object |