Epics Do Not Show Up in Epic Panel due to Wrong Epic Issue Type
症状
When a user intends to create any Epic in the Epics Panel, the default issue type for the Epics is not Epic issue type (for example bug instead of epic).
原因
Per - GHS-6927Getting issue details... STATUS , this most likely occurs when the user deletes/changes the Jira's default issue types so Jira won't map it correctly to the exact issue type.
ソリューション
This is a dangerous operation. Be careful to back up your database prior to attempting it.
BACK UP YOUR DATA USING THE INSTRUCTIONS AT Backing Up Data PRIOR TO ATTEMPTING THIS PROCEDURE
Identify the 'Issue Type' IDs for the Issue Types used by Jira with the following SQL.
select id, pname from issuetype where pname in ('Epic');
- エピック
Run the below SQL in the Jira database to locate the current configuration data:
select propertyvalue from propertytext where id = (select id from propertyentry where property_key ='GreenHopper.Epic.Default.issuetype.id');
- The returned text will be a long one and we recommend copying the contents from the displayed output to a text editor of your choice.
Modify the XML output from the previous step (using the text editor) to so that the below entries point to the right custom field ids which we identified in the initial step.
XML Attribute Related Custom Field Sample XML gh.issue.storypoints
ストーリーポイント <entry> <string>gh.issue.storypoints</string> <string>customfield_10900</string> </entry>
gh.issue.rankingfield
Ranking (Obsolete) This is from versions of JIRA Agile (now Jira) prior to 6.x. <entry>
<string>gh.issue.rankingfield</string>
<string>customfield_10002</string>
</entry>
gh.issue.labelfield
Epic/Theme <entry>
<string>gh.issue.labelfield</string>
<string>customfield_10001</string>
</entry>
gh.issue.businessvalues
事業価値 <entry>
<string>gh.issue.businessvalues</string>
<string>customfield_10004</string>
</entry>
gh.issue.flaggingfield
Flagging <entry>
<string>gh.issue.flaggingfield</string>
<string>customfield_10000</string>
</entry>
The XML also includes these additional values for the following 'Issue Types':
XML Attribute Related Issue Type Sample XML gh.issue.story
ストーリー <entry>
<string>gh.issue.story</string>
<string>7</string>
</entry>
gh.issue.task
Technical Task <entry>
<string>gh.issue.task</string>
<string>8</string>
</entry>
gh.issue.epic
エピック <entry>
<string>gh.issue.epic</string>
<string>6</string>
</entry>
gh.issue.businessvalues
事業価値 <entry>
<string>gh.issue.businessvalues</string>
<string>customfield_10004</string>
</entry>
Once the XML is prepared, update back the database with the below SQL command:
update propertytext set propertyvalue = <copy the contents from the text editor containing the XML here> where id = (select id from propertyentry where property_key ='GreenHopper.Epic.Default.issuetype.id');
- (Optional - Oracle Only): Commit the changes to database by an explicit
COMMIT
. Jira を起動します。
- Reindex Jira and test to see if you can use Jira without errors.