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,366,379
Community Members
 
Community Events
168
Community Groups

Is there any way of getting hierarchy of structure plugin as text type custom field value?

I made a Hierarchy in structure plugin with some issues. is there any way to get the Hierarchy structure in custom filed(Text type) value.

2 answers

3 votes

Hello @IYTHA RAJESH ,

David from ALM Works here.

Using the Attribute to Issue Field Effector, where the attribute is a formula like the one below, should work for you:

IF issuetype = "Epic":
JOIN#subtree{key}

You would just need to modify the IF statement to match what is on the level you want to run the calculation at.

Please let me know if it helps!

Best,
David

Hi David Niro,

 

Thanks for your reply,

I have added the formula  Attribute to Issue Field Effector , The custom field is getting updated with this effector but my requirement is when I change the Hierarchy order manually the custom field should be updated accordingly.

Hello @IYTHA RAJESH ,

In order to write the new values to the field, the Effector will need to be run again.  Effectors need to be run manually.

There is an option to have Effectors run on a schedule, using Scriptrunner.  The script to do this can be found here.

Please let me know if this helps.

Best,
David

1 vote
Dave Mathijs Community Leader Sep 14, 2022

Hi @IYTHA RAJESH welcome to the Atlassian Community!

What do you mean exactly? Are you talking about the Structure panel in the issue detail view? Structure allows many types of hierarchies depending on the way generators have been added.

Like Dave Rosenlund _Tempo_ likes this

Here I have attached the image, which shows the structure plugin parent children hierarchy relation. I had a multiline text field in the parent issue, the value of the parent issue custom filed should be structure plugin hierarchy which I had created.

Example for parent issue custom field value: Group*1 -> {Req-4, Req-3, Req-1, Req-2(Req-2.1)} ( Hierarchy manner)

Like Dave Rosenlund _Tempo_ likes this

Suggest an answer

Log in or Sign up to answer