Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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 sprint name to the Issues in Epic panel

I will enter this as a new question. I successfully added story points and fix version.  But I can't seem to figure out how to parse the sprint to get the name.   When I use a javascript function like split(","), the entire script seems not to work.   Any help is appreciated.

Reference:

How do you add a column to "Issues in Epic" panel

In fact Sprint is also a custom field. For example in the public instance, the customfield is customfield_11930. You may need to do some string parsing based on the value that you get for the customfield.

3 answers

Hi Susan,

We have created a JIRA add-on to solve these kind of problems - Issue Matrix.

By using it you can completely customize how the issues in an Epic are shown - you can choose which columns to show - for example you can add Story Points, Fix Version and Sprint. You can also separate issues in different sections according to issue type (i.e. Stories, Tests, ect.), sort based on a field, and so much more.

If you need a demo or you need help setting it up, just drop us an email at support@botronsoft.com.

Thank you for your response.   I am on a network that is secure so it is very difficult to obtain additional plugins.    I have successfully already added Story Points and Fix Version, and just need to know how to parse the customer field for Sprint.

Generally it's not a good idea to use JS hacks as sooner or later they will break - when JIRA Core or JIRA Software is upgraded.

The sprint field is a comma-separated list of ids - you can use the JIRA Agile REST API to get the name of the sprint. Another warning here - this will be slow, depending on how many issues you have in the epic.

Would also be interested in this. 

Folks, Here is my simple script to display latest sprint in Issues in Epic panel. You need a custom field id for latest sprint.

 

<!-- Script to add latest Sprint column in Issues in Epic panel -->
<script type='text/javascript'>
AJS.$(document).ready(function() {

AJS.$('#ghx-issues-in-epic-table tr').each(function(){
console.log('Found epic table');
var row = this;
var issueKey = AJS.$(this).attr("data-issuekey");
AJS.$.getJSON(AJS.contextPath() + '/rest/api/latest/issue/' + issueKey, function(data){
console.log('Got data for - ' + issueKey);
var value = "" ;
if (data.fields.customfield_25380 != null) {
value = String(data.fields.customfield_25380)};
console.log('Value - ' + value);
var actions = AJS.$(row).find('td.issue_actions');
AJS.$(actions).before('<td class="nav">' + value + '</td>');
});
});
});
</script>

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

120 views 7 10
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