The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to display a custom field of the epic in the field incidents of the epic

Manuel Villegas
January 25, 2019

I want to show a custom field within the epic screen, where the incidents that are inside the epic are displayed. It's posible?

 

I have painted in yellow the place where I would like to incorporate the field, it is possible

attached image

Captura2.PNG

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Manuel Villegas
January 25, 2019

I have read the two post you indicated and I would have to add a script. But I do not know exactly where it should be added

<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 = data.fields.customfield_10600;
  console.log('Value - ' + value);
  var actions = AJS.$(row).find('td.issue_actions');
  AJS.$(actions).before('<td class="nav">' + value + '</td>');
 });
});

});
</script>

Thanks