Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Webhook example

Action name - Create an issue

Worked with rules - Find content

Action type - Webhook

Url - https://mylovelyapp.atlassian.net/rest/api/3/issue

Headers:

{
   "Accept":"application/json",
   "Content-Type":"application/json",
   "Authorization":"Basic sometoken"
}

Body:

{
   "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"
                  }
               ]
            }
         ]
      }
   }
}

Set content property example

Action name - Add property for content

Worked with rules - Find content

Action type - Set content property

Property Key - foundItemData

Property Value:

{
  "value": "{{templateName}} {{ruleName}} {{actionName}}"
}

  • No labels