Skip to main content
Panther Knowledge Base

What does Panther's Jira request header and body payload look like?

QUESTION

What does the formatting of Panther's Jira request header and body payload look like? I’m trying to mimic how Panther works with the Jira API to send an alert and want to keep the formatting consistent.

ANSWER

The only request header that we send is the auth header, which is effectively:

Authorization: Basic <base64encoded(username:apikey)>

The request body payload looks roughly like this:

{
    "fields": {
        "summary": "Some Failure: My Summary",
        "description": "*Description:* My Description\n [Click here to view in the Panther UI|https://panther.io/alerts/my-alert-id?source=jira]\n *Rule ID:* my-rule-id\n *Alert ID:* my-alert-id\n *Severity:* INFO\n *AlertContext:*\n {code:JSON}\n{\n    \"some\": \"json\",\n    \"or\": \"code\",\n}{code}",
        "project": {
            "key": "MYPROJ"
        },
        "issuetype": {
            "name": "Task"
        },
        "assignee": {
            "id": "assignee-jira-id"
        },
        "labels": ["my-label"]
    }
}

 

  • Was this article helpful?