Forums

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

How can I get a property from a user when I only have the users AccountID?

stephen_clay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 17, 2022

I'm writing an automation rule that will send a slack message to each user mentioned on a comment. I can retrieve the account ID of each user and I have set a custom property of SlackID for each user. What I need is to retrieve the SlackID based on the AccountID.


E.g. {{AccountID.properties.SlackID}} or similar.

 

Is this possible?

1 answer

1 accepted

0 votes
Answer accepted
stephen_clay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 17, 2022

Answering my own question.

Using the WebRequest action to call

https://wearejourney.atlassian.net/rest/api/3/user/properties/SlackID?accountId={{AccountID}}

 

gets me the property that I'm looking for.

Suggest an answer

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

Atlassian Community Events