You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi All,
I'm trying to create 2 cascading custom fields, based on Assets information.
My case:
In Assets, I have a simple object scheme with 2 object types: "Machine" and "Part".
"Machine" has a 1-to-many relation with "Part". So "Part" has incoming machine relations. I can see this in the objects.
I have created 2 custom "Assets" fields:
I'm stuggling to get the "Filter issue scope" AQL working in the "Part" custom field.
So far i have tried:
None of them seems to be working. Any idea's on what the correct AQL would look like?
When i create an AQL with a fixed key, it seems to be working correctly. Ex.
Thanks,
Kris
Hi Kris,
Assuming you have "Part" set up as an attribute of "Machine" try this:
Filter Scope: objectType = "Part"
object having inR(Name = ${customfield_10114.label})
Hi Luis,
Thanks. Creating a query on 'label' like you suggested works.
I'm still curious to know why searching on "Key" does not seem to work.
Searching on "label" can give too many results when the name of the machine is not unique. You can offcourse prevent this by making "name" unique.
BR,
Kris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is something I have struggled with as well. My best guess is it's using the API on the backend to call the information and maybe they just haven't created an avenue to pull the key?
By default, ${customfield_####} pulls the objectId from Assets. Using the ".label" returns the label instead which is one of the values you get from running the API call to reference an object, interestingly enough, so is objectKey. However, using something like (Key = ${customfield_####.objectKey}) doesn't seem to work.
Up to this point, I've just chalked it up to Assets still being relatively new in terms of feature development for cloud. But it's no less frustrating for sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.