Forums

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

Help with custom field looking up asset attributes

steven.allcock
Contributor
April 14, 2025

I am trying to create a new custom field to chow the laptop options available for a job role but my mind is having a complete blank

What config do i need in the filter AQL 

so based on the job role selected - Object (in a custom field before this)

Then present the laptops available (attribute) 
example below
image (155).png

1 answer

0 votes
Marc - Devoteam
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.
April 14, 2025

Hi @steven.allcock 

The assets field context need to be set as follows, if the Laptop options are references

Object schema: <name of schema>

Filter scope (AQL): objectType  = Role

Filter issue scope (AQL): ("Laptop Options" = ${customfield_xxxxx.label})

steven.allcock
Contributor
April 14, 2025

Hi,

 

Thanks for the suggestion but no asset values are being returned ive tried tweaking the suggestion to see if that helps but didn't

ive also tweaked the attribute as it may have clashed with something else

Any ideas what im doing wrong - ive also tried objectType = "Job Roles" which is where the job roles are in assets

image (156).pngimage (157).png

Marc - Devoteam
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.
April 15, 2025

Hi @steven.allcock 

  1. Can you provide a screenshot of your asset scheme configuration?
  2. Which field is set 1st and what is the config and the customfield ID?

 

steven.allcock
Contributor
April 15, 2025

Hi, 

Do you want the asset scheme config of the job roles? 

The job role field is set first

image (158).png

Marc - Devoteam
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.
April 15, 2025

Hi @steven.allcock 

Looking at the field config of field JML - Job Role.

The options in this field are based on another option choosing in customfield_14076

So the config of the field so be like:

Object schema: Technology Services

Filter scope (AQL): objectType = "Job Role"

Filter issue scope (AQL): "Laptop Options" = ${customfield_14076}

steven.allcock
Contributor
April 15, 2025

Hi,

 

Still getting no results, i'm wondering if this is due to me looking up other asset data in other fields 

In the form at the bottom

Business function is customfield_14076

Job role in Customfield_14078

image (160).pngimage (161).pngimage (162).pngimage (163).png

 

 

image (159).png

Marc - Devoteam
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.
April 15, 2025

Hi @steven.allcock 

Are all objects in the same assets scheme or in different schemes?

Can you show the attribute details and in- and outbound references?

steven.allcock
Contributor
April 15, 2025

All in the same schema

image (164).png

Marc - Devoteam
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.
April 15, 2025

HI @steven.allcock 

Is also see a type in your configuration fro the field "Laptop"

Filter scope says "objectType = "Job Role" and not "Job Roles"

steven.allcock
Contributor
April 15, 2025

managed to figure it out with this and it looking at inbound references from laptop options

image (166).png

Like Marc - Devoteam likes this

Suggest an answer

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

Atlassian Community Events