Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How can i Tag multiply persons by Jira Automation?

So, now I have the case described below and can't move up...

Screenshot 2023-09-19 at 16.16.40.png

My automation works well and as i want but i can't tag that persons who are diplayed by automation.

Here how it looks like now:

Screenshot 2023-09-19 at 16.16.46.png

Here the list of sub-tasks as you can see it's works.

Screenshot 2023-09-19 at 16.16.50.png

And i want to have like that:

Screenshot 2023-09-19 at 16.22.34.png

 

Now I'm trying to find out how to change displayed names to Tagged.

All the best,
Ostap

2 answers

2 accepted

3 votes
Answer accepted
Meliodas16
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.
Sep 20, 2023

Hello @Casper ,

Welcome to the community !

As mentionned, when there are many subtasks and thus many assignees to tag you should use instead :

{{#issue.subtasks.assignee}}[~accountid:{{.}}], {{/}}

Hope it helps !

Kind regards.

Hi @Meliodas16,

It's working!
Thank you

 

With this solution I found a new quest, How can I prevent duplicates of assignee tags.

 

Let's imagine i have 4 sub-tasks and 2 of them are assignee to the same person, so in the comments i will tag a user twice, can you help me to prevent those dublicates by some smart values or rules etc...

All the best,
Ostap

I got it,

I just added a '.distinct' to my smart value, and it works.

 

Screenshot 2023-09-20 at 13.02.30.png

2 votes
Answer accepted

Hi @Casper

You can try using this smart value: [~accountId:{{assignee.accountId}}]

It works for me. I hope its correct.

Best Regards,

msedge_OOQHOW0fVE.png

Hi @Khang Bui

Yes, it works, but not for multiple IDs.

 

Here how it looks like when you try for multiple IDs:

Screenshot 2023-09-20 at 12.10.20.png

In this comment are 3 IDs, but it's just tagging some default option 'User' 

All the best,
Ostap

Hi @Casper

I'm sorry for not reading your requirements carefully. I thought you wanted to tag user from assignee field. Frankly, you can only tag a specific user using [~accountId:their account ID] (EX: [~accountId:557057:1d4fd7f4-bbac-4466-82ee-aaabbbccc]) which will take a lot of effort and also might return the wrong result.

Here's a link to the document I found: Jira smart values - users | Cloud automation Cloud | Atlassian Support

I hope the document will help

Sincerely,

Khang

Like Casper likes this

Thank you,

I will check the documentation.

 

Cheers!

Like Khang Bui likes this

Suggest an answer

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

Atlassian Community Events