"Webhook" action type
Webhook example
How to create a Jira issue
Field | Value |
---|---|
Action name | Any (“Create Jira Issue” for example) |
Worked with rules | Any |
Action type | Webhook |
Url | https://%instanceurl%/rest/api/3/issue |
Token | You can construct and send basic auth headers. To do this you perform the following steps:
Detailed information can be found here. |
Headers | {
"Accept":"application/json",
"Content-Type":"application/json",
"Authorization":"Basic %token%"
} |
Body for Jira | {
"update":{
},
"fields":{
"summary":"Sensitive content in {{issueKey}}",
"issuetype":{
"id":"10004"
},
"project":{
"id":"10000"
},
"description":{
"type":"doc",
"version":1,
"content":[
{
"type":"paragraph",
"content":[
{
"text":"Search by template - {{templateName}}, found sensitive content in issue {{issueKey}} {{{linkToIssue}}",
"type":"text"
}
]
}
]
}
}
} |
Body of Confluence | {
"update":{
},
"fields":{
"summary":"Sensitive content in {{contentName}}",
"issuetype":{
"id":"10004"
},
"project":{
"id":"10000"
},
"description":{
"type":"doc",
"version":1,
"content":[
{
"type":"paragraph",
"content":[
{
"text":"Search by template - {{templateName}}, found sensitive content in {{{linkToContent}}}",
"type":"text"
}
]
}
]
}
}
}
|
Example:
Created issue example (Jira):
Created issue example (Confluence):