Forums

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

Edit field of target issue via automation

Marcel Jünge
April 9, 2026

Hi,

 

i am currently working on an automation rule with no success:

 

Situation:

  • We use a JSM Portal for requesting licenses.
  • In the request an object in JIRA Assets can be selected (Software) and the amount of licenses is entered.
  • A jira project exists that has issues corresponding to the assets objects (Difference: Instead of "Amount of licenses" it is called "Number of licenses"

Automation: 

1. Whenever this request is created the automation should look up issues in a jira project "Key "SC" with the same name as the selected object in the request (e.g. Selected object = Software A and correspondng issue in JIRA project = Software A).

2. The automation then should add up the numbers in the fields "Number of licenses" (Jira issue) and "Amount of licenses" (ITSM Portal request) and update the JIRA issue field. 

 

Maybe somebody can help me.

Thx. 

1 answer

1 vote
Evgenii
Community Champion
April 9, 2026

Hi, @Marcel Jünge 

Weird logic, don't understand why are you looking for similar issues, and try to change them, if you want to edit Assets object.  But maybe you have some internal logic that describes it. 

Anyway, this solutin can help in your case. Create new automation rule:

Trigger: Issue created (scoped to your JSM project)
Action 1 - Look up issues:

project = SC AND summary = "{{issue.customfield_XXXXX.label}}"

Replace customfield_XXXXX with your Assets object picker field ID. The .label gives you the object name like "Software A".

Action 2 - Branch: For each looked-up issue
Action 3 (inside the branch) - Edit issue:
Select field: Number of licenses
And set value, like:

{{#=}}{{issue.Number of licenses}} + {{triggerIssue.Amount of licenses}}{{/}}

Small notice - if fields store decimals like 5.0, append .asNumber to both smart values
Evgenii
Community Champion
April 9, 2026

Set rule project scope to multiple projects (JSM and Software). In trigger action add condition to check, that issue was created in JSM project.

Marcel Jünge
April 10, 2026

@Evgenii First of all thanks for your answer. My Question: Which of these options should i use and how?Screenshot 2026-04-10 123817.jpg

Marcel Jünge
April 10, 2026

Like this?Screenshot 2026-04-10 124642.jpg

Evgenii
Community Champion
April 10, 2026

No, just use branching, select issues by JQL in this branch, and work with them. Don't use lookupIssues

chrome_100426_1468.png

chrome_100426_1469.png

Suggest an answer

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

Atlassian Community Events