Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...

...

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

Body

...

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

Example:

...

Created issue example:

...

Set content property example

Field

Value

Action name

...

Any

(“Add property for content” for example)

Worked with rules

...

Any

Action type

...

Set content property

Property Key

...

foundItemData

Property Value

...

Code Block
languagejson
{
  "value": "{{templateName}} {{ruleName}} {{actionName}}"
}

Action example:

...

Property entity example:

...