"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;

ID  LINKNAME  INWARD  OUTWARD  PSTYLE  
10000Blocksis blocked byblocksnull
10001Clonersis cloned byclonesnull
10002Duplicateis duplicated byduplicatesnull
10003Relatesrelates torelates tonull
10100jira_subtask_linkjira_subtask_inwardjira_subtask_outwardjira_subtask
10200Problem/Incidentis caused bycausesnull
10201Epic-Story Linkhas Epicis Epic ofjira_gh_epic_story
10300Problem/Incidentis caused bycausesservicedesk_automation_default_linktype
10301Problem/Incidentis caused bycausesservicedesk_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.

Filter by label

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