Forums

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

how can I create a jira report with the latest comments in each issue?

Sagayaraj Arulanandam
November 19, 2023

I'm trying to find an option using JDL to generate a report of comments (latest or by specific dates) for specific set of issues. However, I'm unable to find such an option within JQL. Can someone help? 

2 answers

0 votes
Sreenivasaraju P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 12, 2018

You can use Jira Misc Custom Fields plugin and calculate the sub task field value on parent ticket 

 

https://marketplace.atlassian.com/apps/27136/jira-misc-custom-fields?hosting=server&tab=overview

 

for (Issue subtask : issueObject.getSubTaskObjects()) {
CustomField number=customFieldManager.getCustomFieldObject("customfield_XXXX");
Double numbervalue=(Double)subtask.getCustomFieldValue(amountField);
Sum = sum + numbervalue;

}
0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 12, 2018

Hello,

You would need an add-on for it.

For example, you could use the Power Custom Fields Premium add-on:

https://marketplace.atlassian.com/apps/1210749/power-custom-fields-premium?hosting=server&tab=overview

You could create a sil custom field with a code like this and add this field to the view screen of the Task issue type:

number sum = 0;
string[] keys = subtasks(key);
for(string key in keys){
#{number field name} = #{number field name} + %key%.#{number field name};
}

This custom field would show the sum of the Number Field custom field for all subtasks of the task.

Suggest an answer

Log in or Sign up to answer