[JMWE] How can I automatically link the issue to the parent? (Parent to Parent)

RIZKY JTUASIKAL
Contributor
January 13, 2025

I have 2 different issue types, both of which are of type Parent

Parent “A”
Parent “B”


The question is :
How do I make sure that when I create Parent “B”, it will automatically link the issue to Parent “A”, with the type “Relates to”?

can I use this Post Function?

Link issues to the current issue (JMWE app)

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2025

Hi @RIZKY JTUASIKAL 

Is Parent A a fixed issue that will be linked to all newly created Parent issues? Otherwise, how is Parent A determined?

RIZKY JTUASIKAL
Contributor
January 14, 2025

Hi @David Fischer ,

Is Parent A a fixed issue that will be linked to all newly created Parent issues?

>>
Yes, Parent “A” can be described as a fix issue, and later for every other Parent created, it needs to link to Parent “A”

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2025

Then you can add a Link Issues to the current issue post function to the Create transition and specify the Parent A issue key in the JQL: 

key="PAR-1"

 

Like RIZKY JTUASIKAL likes this
RIZKY JTUASIKAL
Contributor
January 14, 2025

Hi @David Fischer ,

once again, thank you for the answer @David Fischer 


I'm sorry, I wanted to ask you again,

 

if I have multiple Project Boards
Project Board 1 (project key: ABC-1)
Project Board 2 (project key: DEF-1)
Project Board 3 (project key: GHI-1), and so on.

it means that the query for the issue key cannot be specific? (cmiiw)

 

 

and how do I make sure that when link issue between Parent A and Parent, it can be of type “Relates to” (automatically)?


your help is very meaningful for us later,
thank you in advance

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2025

To have a different parent issue per project, you can use this kind of JQL:

{% switch issue.fields.project.key %}
{% case "ABC" %}
ABC-1
{% case "DEF" %}
DEF-1
{% default %}
XYZ-1
{% endswitch %}

As for the link type, you specify it on the configuration screen of the post-function  (under "Link Type")

Like RIZKY JTUASIKAL likes this
RIZKY JTUASIKAL
Contributor
January 14, 2025

Hi @David Fischer 
thank you very much for your help and advice, you really helped us, @David Fischer 

God bless you

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events