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

Hello,

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.

Regards,
Egor Tasa
ALM Works Support

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

63 views 0 11
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