Hi,
i am currently working on an automation rule with no success:
Situation:
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.
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 licensesAnd set value, like:
{{#=}}{{issue.Number of licenses}} + {{triggerIssue.Amount of licenses}}{{/}}
5.0, append .asNumber to both smart valuesSet rule project scope to multiple projects (JSM and Software). In trigger action add condition to check, that issue was created in JSM project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Evgenii First of all thanks for your answer. My Question: Which of these options should i use and how?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.