Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,964
Community Members
 
Community Events
168
Community Groups

Placeholders on Insight custom field

I have an Insight schema with object type "Users", with an attribute "Manager" which is a reference to the same "Users" object.

On the other side, I have a service request on Jira Service Management side where I want to select an user (from Insight Users objects) and then get its manager on another read only Insight custom field, but I can not make it work.

On the read only custom field I´m trying this IQL on Filter Assign Scope:

object HAVING inboundReferences("userAD" = ${customfield_10308.userAD})

 

customfield_10308 is the Insight custom field to select the user.

userAD is the attribute of "Users" object type that stores the username, and it is the attribute I want to use to do the search as it is unique. I´m sure the problem is on the reference to the attribute on the custom field (customfield_10308.userAD)

 

It works if I reference the object name instead:

object HAVING inboundReferences("Name" = ${customfield_10308.name})

But I don´t want to to this way, as we could have more than one user with the same name (Name attribute stores the full name of the user). So question is if it is possible to reference any attribute of the object type on the placeholder, or only some specific ones, like Name or Label. 

 

I made id to work using an Insight post function, but i´d rather using an insight custom field Assign scope if possible.

 

Regards,

Mariano.

 

 

 

 

2 answers

0 votes

We cannot directly refer to object attributes with placeholders. You can only use properties like Key or Label with Insight custom-field placeholders.

You may try below given IQL

object HAVING outR(objectType=userAD AND object HAVING inR(Key=${customfield_XXXXX})) 

@Shiwani Choudhary  is your suggestion expected to work for Jira Cloud ?

 

According to this, it is not supported yet:

https://jira.atlassian.com/browse/JSDCLOUD-10989

Hi,

I think that a problem is that this attribute is an Object.

Try use something like that: 

object HAVING inboundReferences(objecttype=User and "Key" = ${customfield_10308.key}) and objectType in ("User")

 you can also add "referenceTypes" to this IQL if you have more references:

inboundReferences(IQL, referenceTypes)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events