Hi,
Is there any report where we can see the reopened issues, In history we get to know the status was reopened but do we have any report which shows reopened issues for a project.
Regards,
Suma
you can create a filter with a JQL that use WAS clause. Example :
status WAS Reopened
That filter can be used in a gadget at your convenience.
Hope this helps,
Fabio
@Fabio Racobaldo _Herzum_ The issue is like the status Reopened is happening multiple times , close to reopen again reopen to closed etc..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ciao @Suma Pralhad Kustagi ,
using WAS clause, you will retrive all issues that was in that status at least once. What's your requirment?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fabio Racobaldo _Herzum_ Requirement is i want to have custom report where in it shows how many times it was reopened for a particular issue..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So your requirement is different from the description :)
In order to have information about how many times an issue was in reopened status you should use a Scripted/Calculated field provided by https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=server&tab=overview
If you have chance to use that plugin I can provide you the code to add to that Custom Field
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fabio Racobaldo _Herzum_ Yes we do have this plug-in in use..It would be great if you can share across. Please let me know if any info required from my side..
Thank you :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So you need to :
import java.util.List;
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.changehistory.ChangeHistoryManager;
import com.atlassian.jira.issue.history.ChangeItemBean;
ChangeHistoryManager changeHistoryManager = ComponentAccessor.getChangeHistoryManager();
List<ChangeItemBean> items = changeHistoryManager.getChangeItemsForField(issue, "status");
int result = 0;
for(ChangeItemBean ci : items){
if("Reopened".equalsIgnoreCase(ci.getToString()))
result++;
}
return result;
Use Number field as template for the field.
Let me know if it works.
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please let me know if I have missed anything. Not sure where to put in the code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In Behaviors we need to add the code snippet ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Suma Pralhad Kustagi u used a custom field provided by scriptrunner (https://scriptrunner.adaptavist.com/6.9.0/jira/script-fields/no-of-times-in-status.html) it should work.
My code is for "Scripted Field" custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fabio Racobaldo _Herzum_ The field value says 0 for all the issues of particluar issue type.. Is it the right way ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Suma Pralhad Kustagi for both solutions, try to see result using Preview Issue Key with an issue that was transitioned to Reopened status at least once.
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.
hey @zacharoula_brinia ,
no, it is not free. Here more information about pricing https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?tab=pricing&hosting=datacenter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey, if you're open to marketplace solutions, let me recommend Report Builder by Actonic https://marketplace.atlassian.com/apps/1216997/report-builder-jira-reports-and-data-analysis?hosting=cloud&tab=overview for you.
Below is an example of Created vs. Reopened report available in the app, which you can use to effectively report on your reopened issues.
The advantages are:
Regards,
Rustem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.