Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,989
Community Members
 
Community Events
168
Community Groups

Trying to use Automation to tag several users for a custom field

I am trying to create an automation so when the collabs custom field (people field with multiple users) is edited, then a comment is created, tagging them letting them know that they have been tagged. This is what I have so far, but it is not working: 

Hello [~accountid:{{customfield_20056.accountId}}], you have been added to {{issue.key}} as a collaborator. Please see the ticket for further information.

 

I have done this before for a custom field, but never for a custom field that has more than one person in it (it is not restricted to a single user). I am wondering if this is not supported yet in team-managed projects or Jira?

1 answer

1 accepted

0 votes
Answer accepted
John Funk Community Leader Nov 16, 2021

Hi Andrea,

I have not tried to do that for a Team-managed project before. But does it have to be a comment added? Can it just be an email that gets sent using Automation for Jira? 

That is a great idea! That will work! In the to: field, can I just put {{customfield_20056.accountId}} or how would I do that?

Like John Funk likes this
John Funk Community Leader Nov 16, 2021

You should be able to just type in the name of the field. I have not tried that with a multi-user field though. 

I tried it for one user first. I have the to field filled out with this smart value: 

collabautomation.jpg

The error message in the automation Audit Log says that the "to" field is empty when it's not. :(

John Funk Community Leader Nov 16, 2021

Did you try with just the field name? Start typing and it should come up. 

for whatever reason, it doesn't recognize the field as a people field:emailcollabsmartvalue.jpg

The only options seemed to be standard/default Jira people fields 

John Funk Community Leader Nov 16, 2021

I thought that Collabs was a people picker field. Is it not? 

When I type in the field name for a multi-user people picker field, it comes up:

screenshot.png

It is, but I'm not sure why it doesn't show up :(

collabfield.jpg

collabnotshowup.jpg

John Funk Community Leader Nov 16, 2021

Ah! I forgot this field created on a Team-managed project. So, yeah, it looks like it's not supported. 

Good to know! Thank you! I will definitively use this in the future for company-managed projects. 

Do you have any other ideas on how to notify multiple users when added to a custom field? 

John Funk Community Leader Nov 17, 2021

Not unless you just hard code their email addresses in the To field. 

Oh interesting, thank you!

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events