Intermittent error on Jira

Heraldo César Teixeira December 19, 2017

Every day we are facing a bug in the jira, whenever we create a new Task and create the link with an "Epic" the error appears in "Epic" and we are blocked to create new cards.

Every day we make the corrections and the error returns.

What could be causing this error?

Follow the image with the error.print.PNG

2 answers

0 votes
Dave Theodore [Coyote Creek Consulting]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 19, 2017

I would look at the application log (on disk) when the error is happening. There should be a stack trace there with more information.   It would also be worth using the built-in Log Scanner to see if it finds problems with your system.

0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 19, 2017

Hi Heraldo,

You stated you make the changes everyday and the issue returns.  Are you following the guidance in the knowledge base article Issue screen displays error rendering greenhopper-epics-issue-web-panel:

Diagnosis

The following SQL query will search for any invalid epic links in your instance of JIRA:

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

If the query above returns any results, proceed to the Resolution to remove the invalid epic links.

Resolution

Follow the instructions from Using the database integrity checker:

Through the database:

  1. Shutdown JIRA;
  2. (warning) Create a database backup;
  3. Execute the following query to remove the corrupt entry:

    delete from issuelink  il
    WHERE il.LINKTYPE in
      ( 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) 
    );

    (info) If the SELECT query from Diagnosis taking too long, the DELETE query can be replaced with the correct ID returned from the SELECT query as alternative.

  4. Restart JIRA.

If you've followed those steps the next thing you'd need to figure out is why this is occurring.  According to Issue screen displays error rendering greenhopper-epics-issue-web-panel:

This situation is usually seen when having Transition Post Functions that update values. Plugins like "JIRA Suite Utilities" provide additional functionality that it may fail depending on conditions when they are executed. For example, adding an Epic Link to an Epic. This will exit the Creation process and leave an inconsistency on issues. Make sure the "Creates the issue originally." Post Function is first in the Create transition.

Try the above steps and check for any post functions that could be causing this issue and let me know the outcome.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer