Why isn't my Jira priority field being set via SNS and Lambda?

Hi everyone,

I’m integrating AWS GuardDuty with Jira Service Management. My Lambda function maps GuardDuty severity (1–8) to Jira priority codes (P1–P4) and sends an SNS message with a payload that includes a “Priority” field. However, Jira doesn’t seem to pick up or display this priority. Everything else works fine, creates alerts with description etc.

Here’s my simplified mapping function:

function mapSeverityToPriority(severity: number): string {
  if (severity < 4) return "P4";
  else if (severity < 6) return "P3";
  else if (severity < 8) return "P2";
  else return "P1";
}

Payload:

{
  "Priority": jiraPriority,
  // ...other fields...
}

Could it be a configuration issue on the Jira side, or is there something else I’m missing in the payload format?

Thanks in advance for your help!