It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I add Epic status to the Initiative ticket?

When I open an Epic, I see a list of the Stories and their status.  When I open an Initiative, I see the list of Epics.  How to I add the Epic status to the Initiative ticket view?  

1 answer

0 votes

Hi Laurie,

Natively there is not an option do modify the panel from the UI, but you can drop a script in your announcement banner to call the element in to play.

As an example on what to do take a look at the following  Discussion from the Atlassian Developer Community posts, with an EXE on how to add in the Status of the child epic before that became a native feature of the panel:

I used the script from that post as the framework and modified it use the "Epic Status" field  instead of the "Status" field below, Noting the Epic Status Field is going to call from the customfield_ID rather than the field name directly:

<script type='text/javascript'>
AJS.$(document).ready(function() {
AJS.$('#jpo-child-issues-web-panel .jpo-child-issue-table tr').each(function() {
var $row = AJS.$(this);
var issueKey = $row.find('td:first-child').text();
AJS.$.getJSON(AJS.contextPath() + '/rest/api/latest/issue/' + issueKey, function(data){
var epicStatus = data.fields.customfield_10102.value;
$row.append('<td class="jira-issue-status-lozenge aui-lozenge jira-issue-status-lozenge-green jira-issue-status-lozenge-done aui-lozenge-subtle jira-issue-status-lozenge-max-width-medium">' + epicStatus + '</td>');
});
});

});
</script>

In the EXE above ^ the Epic Status field is customfield_10102 but may be different on your instance depending on order of installation of the various applications and add-ons, to look this up you can inspect the field element from one of your epics using the Browser Development tools OR navigate to Admin >> Issues >> Field Configurations >> Default Field Configuration locate the Epic Status field and select the Screens option for the field and the CustomField_ID value will be located in the URL for the screen setting page.

Then dropping that script into the announcement banner will pull the epic status into the initiative like this:

Screen Shot 2019-10-22 at 1.53.31 PM.png

Regards,
Earl

Looks awesome, unfortunately I am not a developer.  So, this is a little over my head.  

Hi Laurie,

No worries at all, and I completely understand, as dropping scripts into the system to customize the interface can be pretty rough without a firm understanding of what it is doing, as there is always a potential that the script could break something else in the system and without that full understanding of what to look out for could lead you into more trouble than its worth.

However, If you did want to try this one out I did a bunch of testing locally with this script and I could not trigger any follow up errors for some additional follow up as this would be a helpful feature to have.  But I did modify it again a bit because the original one I posted had all the elements returned as the GREEN done marker color, so I changed it so 'To Do',  'In Progress', and 'Done' all lined up with the respective Green Yellow and Blue defaults color options.

I created the following feature request to track interest in making this a native function of the panel and the updated script was added there as a workaround with the correct color markers:

Please make sure to add a vote to the feature request to help us track interest in the feature for prioritization efforts as covered in the Implementation of New Features Policy 

And for testing this out if you do decide to give it a go, its really easy to add or remove if its not working,  You can go to Admin >> System >> Announcement Banner and paste the script in and update, and you should be good to go (Noting there is a BUG when setting a change in the announcement banner currently in 8.x versions of Jira where the screen times out after selecting the "Set Banner" option,  just hit the page back button when this occurs, and the change will have been applied in the background),  If there are any other errors navigate back to the same path and remove the banner and the functionality returns to default:

Screen Shot 2019-10-23 at 3.41.19 PM.png

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Advanced Roadmaps

3 short videos to help you get started with Advanced Roadmaps

Hi community, I’m Roi, a product manager working on Advanced Roadmaps for Jira. While Advanced Roadmaps is a powerful tool to plan and track work at scale, we know it can be challenging to get star...

3,468 views 22 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you