Forums

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

Auto clone security issues from project to team-specific projects based on Application Description

Nikusha Kalatozi
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!
May 21, 2025

Hi everyone,

I’m setting up a Jira Automation rule in my EST jira project to re-route newly created security issues into the appropriate team backlogs. Our security tool creates tickets in EST with a description block like:


Category: Cloud Security Issue
Application Name: *AWS-124289522
Severity: High

 

I’d like to automatically route security issues into team-specific Jira projects based on the “Application Name” prefix. For example, any issue whose description includes:

Application Name: AWS-...

should be cloned into the DevOps project backlog. We’ll use the application name to determine the correct team, and we already maintain a registry mapping each application to its Jira project. Could you recommend the best way to automate this process via Jira automation from scratch?



I've uploaded a screenshot of what I've made so far.

 

2 answers

0 votes
Bob Dalm
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.
May 21, 2025

Hi @Nikusha Kalatozi

you'll need a mapping between projects and keywords. This should work both with assets or a lookup table in your rule.

Extract the prefix with a match.

Add the projectId's in either table and use a smart value for project when creating the new work item. 

Best, 

 

Bob

Nikusha Kalatozi
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!
May 21, 2025

Hi @Bob Dalm

I’m new to this and could use your help troubleshooting. Here’s the automation rule I’ve set up:

Trigger: Manually triggered

Action: Create lookup table
Key: AWS = VST (where “VST” is the project I want to clone the issue into)

Condition: Compare two values
Check if {{issue.description}} matches the regex:
{{issue.description.match("\*Application Name:\*\s\*(AWS)\[\w/.\_-]\*").first}}

Action: Create new work item in VST
Issue Type: Same as the original work type

In the audit log I see this error:

Create Work Item 21/05/2025, 15:58:43
Error retrieving the work type fields for project/typeId – 10289/10495

I’m 99% sure it’s failing because I have a custom “Work Type” field on this issue. Does the order of steps look correct in general? Thanks!

Bob Dalm
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.
May 21, 2025

Hi @Nikusha Kalatozi , 

Looks good! 

image.png

Supposedly this issue occurs when trying to fill a customfield with an incorrect smart value;

https://community.atlassian.com/forums/Jira-questions/What-is-causing-this-new-Automation-error-Error-retrieving-the/qaq-p/2849341

Double check all input when creating the new work item, see where it goes wrong. 

0 votes
Jack Brickey
Community Champion
May 21, 2025

Hi @Nikusha Kalatozi , you could simply use an If/Else condition but possibly using a table would be better. New-Automation-action-Create-lookup-table 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events