Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to use a variable value as an object reference?

Chad Jackson January 27, 2023

Hello All,

I feel like this should be simpler than it has been and truly do appreciate any and all assistance.

I am using "lookupObjects" to search Assests in (Atlassian Cloud)

Using objectTypeId = "ID"   Attributes are Name, Manager, Members

 logging {{lookupObject.Name}} returns all 50 Team Names

Manager and Members are Object Links to another objectType where we store user info like name and e-mail. I have a variable created that's being pulled from a (CF) at Issue creation {{TeamName}} Which is populated with a singular assigned team.

The issue I am having is with reference "Name" = {{TeamName}} returning a singular value for {{lookupObjects}} in which I will pull user email address from. Having tried several iteration of putting it all together has left me chasing my tail. 

Currently I have everything working if I point at a singular Key = "Key Value" of a team name.

The whole process is to auto assign a new issue to a select team by application value and then e-mail all team members of a new assignment including the issue link and issue information.

 

TeamName.png

1 answer

1 accepted

1 vote
Answer accepted
Chad Jackson January 27, 2023

Found the Issue my variable had a typo my lookupObjects searech string looks like this and is working after fixing the typo.

 

objectTypeId = 29 AND Name = "{{TeamName}}"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events