Structure custom column: Get value from linked issue?

Hello. In my Structure, I would like to add a column that displays a value from the task's linked issue. Is it possible to do this as a custom column in Structure?

For example:

Task A is linked to Task B via 'is a User Story for'

Task B has a custom field called 'Department' with a value of 'Research'

Task A is in my Structure. I would like to add a Department column that would show 'Research' next to Task A.


Thank you.

1 answer

This widget could not be displayed.


Yes, this is possible if the issue is in the structure. Since version 4.3, you can use PARENT{} aggregation function to call some field from the parent. Alternatively you can select JOIN{} or SUM{} functions to pick values from children. Note that in a structure graph there is always one parent to an instance of an issue, but there can be more than one child. Thus only PARENT{} returns single value. 

Here is some documentation about aggregation functions.

If you want to reference any issues that may or may not be in the structure, but are linked to an issue in the structure, you'd have to use Script Runner custom fields, but this would require formulation of a criterion how value is selected, as there can be more than one parent as well as more than one child with the same link type in Jira.

Please, let me know if aggregation functions satisfy your requirements. And if you need a script runner field, please, let me know the criterion how you select Task B from tasks linked to Task A, and I'll see if I can provide an example of groovy script.

Egor Tasa
ALM Works Support

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 9 hours ago in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

38 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you