Forums

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

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

IYTHA RAJESH September 14, 2022

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

1 accepted

3 votes
Answer accepted
David Niro
Atlassian Partner
September 14, 2022

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

IYTHA RAJESH September 19, 2022

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.

David Niro
Atlassian Partner
September 19, 2022

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 Champion
September 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.

IYTHA RAJESH September 14, 2022

Heirarchy in structure plugin.jpg

Like Dave Rosenlund _Trundl_ likes this
IYTHA RAJESH September 14, 2022

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 _Trundl_ likes this

Suggest an answer

Log in or Sign up to answer