Forums

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

How to ensure that no duplicated a Jira issue/add_comment has been created

Gouiaa
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!
October 1, 2025

I am running my code in AWS Lambda function (consume events from an SQS):
One of the task is to create an issue (Operation-A) and then get it id/key and use them for another operation (Operation-B)
The problem is that if for any reason operation-B failed, the event will come back to the SQS and we will process it from scratch ( Re-Run Operation-A which already executed) and so on.

I tried to generate a UUID for each operation and use it as a custom field in jira during the creation but it fails with an error.
" custom field is not on a screen"

1 answer

0 votes
Matteo Vecchiato
Community Champion
October 1, 2025

Hi @Gouiaa ,

Welcome to Atlassian community and thank you for your question.

Your are right, the correct way is to generate an UUID and query Jira (through a rest API with Jql) in order to check if the work item exists, and if not, create it 

To solve the error you are experiencing you need to add the field in the create screen of corresponding work item.

You need to open The project settings, locate the screen scheme associated to work type you are using and add the field in the screens: create, view.

I hope it helps 

Regards 

 

Suggest an answer

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

Atlassian Community Events