# Using Jira Issue Link to set Parent in DevOps

**URL:** <https://community.exalate.com/t/using-jira-issue-link-to-set-parent-in-devops/4476>\
**Category:** General Questions\
**Tags:** onpremise-jira, usecase, jira-server, migrated\_question, jira-server-azure\
**Created:** [November 4, 2024, 7:00am UTC](https://community.exalate.com/t/using-jira-issue-link-to-set-parent-in-devops/4476 "2024-11-04T07:00:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:00am UTC](https://community.exalate.com/t/using-jira-issue-link-to-set-parent-in-devops/4476/1 "2024-11-04T07:00:21Z")

</div>

_Originally asked by Howard Kenny on 26 November 2020 [(original question)](https://oldcommunity.exalate.com/questions/20122465)_

* * *

In Jira, we use the Epic issue type for two ‘epic types’; Business Epics (project = EDI) and Software Epics (project != EDI). We use a link type of ‘Is SWD Epic for Business Epic’ to link them.

I have Exalate configured so that Business Epics (EDI) generate an Azure DevOps ‘Epic’ and Software Epics (non-EDI) generate an Azure DevOps ‘Feature’ which is great. However, I’d ideally like to have the parent/child relationship between the Epic and Feature in DevOps - Business Epic being the parent.

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:00am UTC](https://community.exalate.com/t/using-jira-issue-link-to-set-parent-in-devops/4476/2 "2024-11-04T07:00:22Z")

</div>

_Answer by Juan Grases on 26 November 2020_

Outgoing on Jira

```auto
replica.issueLinks = issue.issueLinks

```

Incoming Azure:

```auto
def remoteLinkedIssue = replica.issueLinks.find{it.linkName == "The right link name"}?.otherIssueId
if(remoteLinkedIssue){
    issue.parentId = syncHelper.getLocalIssueKeyFromRemoteId(remoteLinkedIssue, "issue")?.id
}

```

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 6, 2024, 7:00am UTC](https://community.exalate.com/t/using-jira-issue-link-to-set-parent-in-devops/4476/3 "2024-11-06T07:00:35Z")

</div>

Closed on November 6, 2024, 7:00am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
