Forums

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

Insight referenced field: indirect referenced object (2-tier reference)

Deleted user September 6, 2018
Is it possible to have a referenced field that is 2 links away? Say first single field says "Role": "Business Analyst". Now the Role is linked to "Project Roles" like eg. "Business Analyst (10300)" where 10300 is the project key. The user finally is linked to "Project Roles".

So how can I have a reference field that goes from "Role" to "User"?

2 answers

1 accepted

2 votes
Answer accepted
PJ Wysota
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.
September 10, 2018

Well, there is a way:

1. You need to use Insight 5.4+ (older versions do not support it), and instead of referenced fields (although it might work with Referenced Fields, as I did not test that - since 5.4 I do not use Ref. Fields at all)

2. For outbound references You would use Issue Scope/Assign Scope with IQL syntax like:

ATTRIBUTE[OBJECT_REF] LEVEL1.ATTRIBUTE[OBJECT_REF] LEVEL2 = ${DEPENDENT_FIELD_VALUE}

- differentiating levels with "."

Example: 

"Assigned To"."JIRA User" = ${Reporter}

where Assigned to is referring to Insight User Object and JIRA User is attribute at that object.

3. For inbound references You would need usage of object having inboundReferences function

Examples:

a) inbound and outbound reference in the row

object having inboundReferences("Assigned To"."JIRA User" = ${Reporter})

b) 2 inbound references

object having inboundReferences(object having inboundReferences("JIRA User" = ${Reporter}))

Of course with more complex setups You would need more complex queries, e.g. adding differentiation of object types and using logical constructions AND/OR. 

Deleted user September 10, 2018

Thanks, that is exactly what I needed! 

1 vote
Laurens Coppens
Community Champion
September 6, 2018

Hi @[deleted]

This is not supported with referenced fields, you can't reference a referenced field.

I had a similar setup:

Insight field (field1)

referenced insight field (field2)

insight field with issue scope like this: (objecttype = "yourobjecttype" and  "attribute field1" = ${field1} and "attribute field2"= ${field2})

Is this what you need?

Regards,

Laurens

Deleted user September 10, 2018

Hi @Laurens Coppens Thanks for your reply. That is close to what i need. @PJ Wysota was closer to the solution bc  I had inboundReferences (without realizing it).

Thanks anyway, I appreaciate your help!

Silvio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events