Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Gustaf Matsson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 3, 2025

Hi,

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!

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 2025

Hi @Gustaf Matsson 

Welcome to the community.

What are you trying to create in the Jira side a work item (issue) or an alert?

Gustaf Matsson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 4, 2025

An alert in jira service management.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events