"Problem/Incident" issue link type duplicated

"Problem/Incident" issue link type duplicated

Problem

While migrating projects from one instance to other instance, we noticed that the plugin is creating new issue link "Problem/Incident" every time we migrate a project. Refer to the attached image.

This is happening only for "Problem/Incident" and the duplicate links are not used in any issues.

Solution

I managed to reproduce it and the fix is easy, but we need to make sure that it's the same problem you're dealing with.

So this can be caused by this issue link's style in the database. We use both name and style to match issue links.

This led me to this JIRA kb article. In brief, the PSTYLE value for the Problem/Incident link type should be 'servicedesk_automation_default_linktype'. In some cases it can be left null and should be updated.

To verify this, can you check the snapshot and query issuelinktype and check the pstyle? 

I expect sth like this for the snapshot:

<issueLinkTypes nativeId="10200" name="Problem/Incident" outward="causes" inward="is caused by" style="servicedesk_automation_default_linktype"/>

and this for the db:

select * from issuelinktype;

10000

Blocks

is blocked by

blocks

null

10001

Cloners

is cloned by

clones

null

10002

Duplicate

is duplicated by

duplicates

null

10003

Relates

relates to

relates to

null

10100

jira_subtask_link

jira_subtask_inward

jira_subtask_outward

jira_subtask

10200

Problem/Incident

is caused by

causes

null

10201

Epic-Story Link

has Epic

is Epic of

jira_gh_epic_story

10300

Problem/Incident

is caused by

causes

servicedesk_automation_default_linktype

10301

Problem/Incident

is caused by

causes

servicedesk_automation_default_linktype

 

Then delete the unused link types from the UI.

Update the pstyle for the used one in the db:

update issuelinktype set pstyle = 'servicedesk_automation_default_linktype' where id = XXX

Use CMJ's Clear caches from the Advanced menu.

 

If the assumption is correct, that should be it.

Related articles

Filter by label

There are no items with the selected labels at this time.