Hello,
I am trying to figure out a way to display the due date of an issues subtasks in the menu of the main issue. For clarity, here is an example of what I would like:
Say we have issue_1 with the subtasks subtask_2 and subtask_3. I would like to be able to click on issue_1 and see the due dates of subtask_2 and subtask_3 in the list view of all subtasks. This would allow me to see all due dates of subtasks without having to click on each one individually.
I have researched the topic and have read numerous outdated articles but nothing seems to fit this specific situation. I have tried editing the jira.table.cols.subtasks under system > advanced settings where I added duedate but nothing seemed to change.
For clarity, I have attached a screenshot to simplify what I am looking for.
Any ideas?
Thanks,
Shane
This isn't really possible in Jira Cloud.
It used to work by modifying the jira.table.cols.subtasks option in Advanced Settings - click here to see how - but that only works in the old issue view (which as of 31/03/2021, can no longer be your default view).
There is a suggestion to bring it the new issue view, see JRACLOUD-70206.
You can still temporarily see it working using this option to click-through to the old view, but it's not ideal as you'd need to do it every time you open an issue.
Ste
Do you think of something like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I might as well contribute the solution to this problem that I've developed. I'm not on Jira Cloud, so the parameters might be slightly different, but I would think this should work on any instance type. I've developed a number of custom JavaScript solutions, which I inject via the Announcement Banner HTML. From some googling, this looks to maybe be only partially available or otherwise hamstrung on Cloud instances, so YMMV. You might have to add this to one of the Jira page template files instead, if that's even possible on Cloud. I've also tried to avoid some of the more modern JS conventions in an effort to make it as cross-browser compatible as possible... but who knows. IE not guaranteed/not supported in newer Atlassian products anyway.
// Add in project keys for which this customization is enabled
var enabledForProjectKeys = ['ABC','DEFG','FOO','BAR'];
var customizationEnabled = () => enabledForProjectKeys.some((key) => JIRA?.Issue?.getIssueKey()?.startsWith(key+"-"));
// Uncomment this line and comment previous line to enable for all projects
//var customizationEnabled = () => true;
// Add the ID of your custom field / builtin field here
var cfID = "duedate"
//var cfID = "customfield_12345";
function showCFOnSubtaskList(context) {
if (customizationEnabled()) context.find('#issuetable tr').each(function(){
var row = AJS.$(this);
var issueKey = row.attr('data-issuekey');
AJS.$.getJSON(AJS.contextPath() + '/rest/api/latest/issue/' + issueKey, function(data){
// console.log('Got data for - ' + issueKey);
var cfData = data.fields[cfID] || "";
// You can style the added element with class / style inline if desired
AJS.$(row).find('td.issuetype').before('<td class=""><span class="">' + cfData + '</span></td>');
});
});
}
[JIRA.Events.NEW_CONTENT_ADDED, JIRA.Events.NEW_PAGE_ADDED].forEach((event) => JIRA.bind(event, function(e, context, reason) {
if (reason === "panelRefreshed" && context.is("#view-subtasks")) showCFOnSubtaskList(context);
}));
The same logic can be used to hook/modify issue displays for various other things, like the links table (#linkingmodule), issues in epics (#greenhopper-epics-issue-web-panel), instead of the subtasks panel (#view-subtasks). I've also hooked/modified non-issue panels such as #datesmodule for client-side modification.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi in this link you have the section How to choose which sub-task fields display on parent issues with the Following indications:
You can define which sub-task issue fields are displayed in the sub-tasks section of a parent issue.
jira.table.cols.subtasks
property key, edit the field values. Note that the summary field is a mandatory value and that fields will appear on parent issues in the same order you list them. Please refer to API documentation - Constant Field Values to see all constant field options.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.