Hello Atlassians,
i've tried the new AI Tool which is pretty cool for helping at building automation rules but iam currently stuck, since iam unsure about the correct punctuation & coding.
Iam trying to match 2 user fields and Mail the missing users.
Field A
User 1,2,3
Field B
User 1,3
So i would like to inform only user 2.
AI wrote this into a Variable
{{#issue.customfield_10003.value}} {{^issue.customfield_10126.value}} {{.}} {{/}} {{/}}
It didn't work or maybe i did something unexpected.
Regards
{{issue.customfield_10126.value.remove(issue.customfield_10003.value]}}
should this do the it ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you solved this problem by yourself?
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.
Hello @Christoph Schulz ,
Welcome to Atlassian community,
Now if we are trying to solve this problem using Jira automation, i would suggest to do like this:
Check Fields Are Not Empty:
Branch Rule / Related Issues (for each user in Field A):
Condition - Check if User is Missing from Field B:
Inside the branch, add a Condition that checks if the current user (from Field A) is missing in Field B.
Use the following Advanced Compare Condition:
{{issue.Field B.asList.contains(issue.Field A.value)}}
Add User to Missing List:
Create a Create Variable action to temporarily store the missing users as they’re identified.
Set the variable to something like missingUsers
, with the value:
{{missingUsers}}, {{issue.Field A.value}}
Send Email Action:
After the Branch Rule completes (add this action outside the branch), add a Send Email action to notify yourself or relevant recipients of the missing users.
In the Email Body, you can insert the missing users using the variable {{missingUsers}}
:
Subject: Missing Users Report
The following users are in Field A but missing in Field B:
{{missingUsers.remove(", ")}}
/--
Let me know, if this solution is working for you.
Best regards,
Ugnius
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.
@Christoph Schulz Can share audit log of that automation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Details zur Aktion:
["10172"]
-Bedingung
Folgende Vorgänge haben die Bedingung nicht bestanden:
UN-18, UN-7
E-Mail senden
Die E-Mail für Vorgänge mit folgenden IDs wurde erfolgreich versendet:
UN-18 , UN-7
It sent correct Mails but left the value in the Mails empty i've put {{missingUsers.remove(", ")}} inside.
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.