Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

issue link does not have a destination issue number

Andrew Thorne
Contributor
April 3, 2018

I have been trying to write a Groovy script that will set the Epic Link to a value if no value is given when the issue is created. During the development, which I had to do in production because we have not had a test environment since we merged our two JIRA systems last year, my script suffered from many fails.

Afterwards, when I tried to check the issue I was trying to link to, there was an error on the issue browse screen that read:

greenhopper-epics-issue-web-panel

Error rendering 'com.pyxis.greenhopper.jira:greenhopper-epics-issue-web-panel'. Please contact your JIRA administrators.

Searching the internet for this error, lead me to this page:

https://confluence.atlassian.com/jirakb/issue-screen-displays-error-rendering-greenhopper-epics-issue-web-panel-779158857.html

I ran the SQL in the diagnosis section and found an issue link from the issue I was trying to link to but with a destination issue number that was null.

I sent all this information to our infrastructure guys but they are not keen on implementing the solution that is in the web page as it is for JIRA version 7.8 and we have version 7.3.6.

Does anybody know of any other method to resolve this error? Or if the instructions on this web page would still work with our version?

Thanks for any advice you can give.

2 answers

1 accepted

1 vote
Answer accepted
Adrián Plaza [DEISER]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 2018

Hi @Andrew Thorne


The solution of the KB that you expose must work for your version of JIRA too, but first of all, do a database dump and then try to execute the SQL to delete the broken link.

 

Cheers,
Adrián.

RTwo_Dtwo August 21, 2019

If 

SELECT * FROM issuelink  il
WHERE il.LINKTYPE =
  ( SELECT id FROM issuelinktype WHERE linkname = 'Epic-Story Link') 
AND
(
  il.destination IS NULL
  OR il.SOURCE IS NULL
  OR not exists (SELECT null FROM jiraissue ji where ji.id = il.destination) 
  OR not exists (SELECT null FROM jiraissue ji where ji.id = il.source) 
);

Result 0

Then:

insert into "AO_60DB71_LEXORANK" ("BUCKET","FIELD_ID","ID","ISSUE_ID","RANK","TYPE") VALUES (0,10005,7,-9223372036854775808,'0|000000:',0);
insert into "AO_60DB71_LEXORANK" ("BUCKET","FIELD_ID","ID","ISSUE_ID","RANK","TYPE") VALUES (0,10005,8,9223372036854775807,'0|zzzzzz:',2);

0 votes
Alexis Baker February 4, 2019

We've experienced this issue just now, in order to resolve the issue, we created the new Epic, created a new story, then related the existing sub tasks to that new story, and the new story to the new epic.

The story with the issue wasn't possible to close, but we cycled to closed resolved.

Saved on restarting DB, and admin!

 

Cheers, 

Alexis

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events