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

Jira automation ping users with special characters in their account ID

Hello,

I am trying to create an automation where I need to ping a user that contains special characters in their accountid found in their profile.

Would look something like this as an example at the end of the URL.

/ViewProfile.jspa?name=c+roberts12345

I tried there examples, but neither seem to work. Any advice?

[~c+roberts12345]

[~"c+roberts12345"]

(both just paste comment showing all text.)

1 answer

0 votes
David Blank
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 26, 2023

Hi @Collin Roberts and welcome to the Atlassian Community!

 

Would you share screenshots of the smart value you are using for the User and how you are pinging them? (ex. Slack, Email, @-mention)

David Blank
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 26, 2023

@Collin Roberts this is the smart value I use to tag the assignee of a given issue in the comments:

[~accountid:{{issue.fields.Assignee.accountId}}]

Like Bill Sheboy likes this

Hello, @David Blank 

Here is a screenshot of the example. I am trying to @-mention a list of users that are not mentioned within the issue in other fields such as assignee.  Screenshot from 2023-09-26 14-10-49.png

 

Doing so results in the below.

 

 

Screenshot from 2023-09-26 14-14-34.png

Bill Sheboy
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 26, 2023

Hi @Collin Roberts -- Welcome to the Atlassian Community!

As David described, you will need the accountId value for each of those users. 

As you note they are not associated to the issue in any way, such as an issue field, you will need to hard-code the values.

Kind regards,
Bill

Like David Blank likes this

Hi @Bill Sheboy

Could you advise where to find the proper accountId?
When I go to the users profile, I see this instead of the long series of numbers other users see..

"https://atlassian.ccri.com/jira/secure/ViewProfile.jspa?name=c+roberts12345"

 

Thanks!

Bill Sheboy
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 27, 2023

An easy way to find these is using an issue search and JQL...

  • navigate to Filters > View All Issues
  • enter some JQL like this
    • assignee IN (theUserName
    • As soon as you start typing, Jira will suggest a user name for you to select
  • Jira will autocomplete, replacing the user name with their account id value
  • grab the account id(s) for use in the rule
Like David Blank likes this

This returns 

assignee IN ("c+roberts12345")

However this still does not ping the user 

[~c+roberts12345]

[~"c+roberts12345"]

 

Bill Sheboy
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 27, 2023 • edited

Please note I did not type in quotation marks in that JQL...Instead when I typed the id autocomplete found the name, and then substituted the account id.

And...this was a method to find the account id values; they still must be used in your rule to effect the mentions.

Like David Blank likes this

Apologies. The return includes the quotation marks. However I mistypes. This is what is returned.

assignee IN ("C Roberts12345")

The "+" Found when going to the user profile is removed, but now there is the space (Which is why I believe there is quotation marks included)

These examples do not work still when trying to ping.

[~c+roberts12345]

[~"c+roberts12345"]

[~c roberts12345]

[~"c roberts12345"]

Bill Sheboy
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 27, 2023

Let's confirm something...what version of Jira are you using: Cloud, Server, or Data/Center?  And, do you have any marketplace addons for JQL installed?

 

Next, as Dave described originally, this is the format to mention someone in a rule comment, where you insert the specific user's account id value.  That can come from a field or be typed-in, as in your case.  You cannot mention someone with the user name in a rule.

[~accountid:insertTheUsersAccountIdHere]

 

When you use JQL to find the account id values, I have not seen the quotation marks automatically added.  This is why I asked your Jira version and if you have addons installed, as something else appears to be adding them.  Please try removing the quotation marks to see if the autocomplete replaces them with the account id value.

If this technique does not work, I suggest working with your Jira site admin to help identify the account id values you need.

Like David Blank likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events