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

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.

Related content