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

How to use a variable value as an object reference?

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

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