Forums

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

asset custom field from another custom field

G. De Fazio July 27, 2023

Hi,

     in my project I'm tring to filter an asset custom field with another asset custom field but I receive "no options" as result.

My new custom field retrieve datas from Azienda asset (company) and I have a custom field called Destinatario (employee) with code customfield_10103 and retrieve datas from Contatti asset.

My AQL query is:

object having inboundReferences(objectType = "Contatti" and Descrizione = ${customfield_10103.Descrizione})

Immagine 2023-07-27 165044.png 

I don't understand my error, please can you help me?

Giuseppe.

1 answer

1 accepted

1 vote
Answer accepted
Björn Gullander Eficode
Community Champion
July 31, 2023

Hi

If I understand you correctly, the user will first select "Contact" and depending on the contact select Company in another field?

In that case you should be able to use the AQL

object having inboundReferences(Key in (${customfield_10103.id})

(Seems like you should be able to set Company automatically in a post function instead as I guess the Contact is only connected to on company)

The only parameter you can have in a placeholder for a field is ${customfield_xxxx.id} or ${customfield_xxxx.label} - see table a bit down on documention page https://confluence.atlassian.com/servicemanagementserver/advanced-placeholders-1044784599.html 

G. De Fazio July 31, 2023

thank you! Problem solved.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events