Forums

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

How can i Tag multiply persons by Jira Automation?

Casper
Contributor
September 20, 2023

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.
September 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.

Casper
Contributor
September 20, 2023

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

Casper
Contributor
September 20, 2023

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
Khang Bui_Candylio September 20, 2023

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

Casper
Contributor
September 20, 2023

Hi @Khang Bui_Candylio

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

Khang Bui_Candylio September 20, 2023

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
Casper
Contributor
September 20, 2023

Thank you,

I will check the documentation.

 

Cheers!

Like Khang Bui_Candylio likes this

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