Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Apps & Integrations

How we use Jira Service Management for our recruitment process! - Part 2

It is never about setting up a process and being done with it. Rather, the focus should always be on optimizing it for the best outcomes. Thus, we didn’t stop at setting up JSM for our recruitment pr...

183 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you