Create report in Jira showing time spent in status
up vote
0
down vote
favorite
For a customer I need to create monthly reports that shows, among other things, how much time an issue is spending in the different statuses (TO DO, In progress, Closed etc.). More specifically, the customer wants to see, how long it takes from the time when they create the issue, and to the time when we "take" the case and start working on it.
I was quite surprised to find out that you can not get this in Jiras default reporting tools. I have searched for relevant Add-Ons, but most reporting tools is very pricy, and I'm not even sure whether they offer this functionality or not. Isn't this a normal metric to want from a report?
However I found David Bevins Jira Rest Client Dot Net api. Unfortunately this api doesn't give me the opportunity to extract the relevant data (timestamps, activity etc.)
So now I have turned to Jiras rest api, and I am trying to set up a program in .NET to do it. This guy did exactly the same. As you see in his SO question, the returned JSON is a mess. Collecting all the right data will require a lot of work. So before I go further I want to know if anyone has done this before and how you did it?
Any help is appreciated.
jira jira-rest-api
add a comment |
up vote
0
down vote
favorite
For a customer I need to create monthly reports that shows, among other things, how much time an issue is spending in the different statuses (TO DO, In progress, Closed etc.). More specifically, the customer wants to see, how long it takes from the time when they create the issue, and to the time when we "take" the case and start working on it.
I was quite surprised to find out that you can not get this in Jiras default reporting tools. I have searched for relevant Add-Ons, but most reporting tools is very pricy, and I'm not even sure whether they offer this functionality or not. Isn't this a normal metric to want from a report?
However I found David Bevins Jira Rest Client Dot Net api. Unfortunately this api doesn't give me the opportunity to extract the relevant data (timestamps, activity etc.)
So now I have turned to Jiras rest api, and I am trying to set up a program in .NET to do it. This guy did exactly the same. As you see in his SO question, the returned JSON is a mess. Collecting all the right data will require a lot of work. So before I go further I want to know if anyone has done this before and how you did it?
Any help is appreciated.
jira jira-rest-api
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
For a customer I need to create monthly reports that shows, among other things, how much time an issue is spending in the different statuses (TO DO, In progress, Closed etc.). More specifically, the customer wants to see, how long it takes from the time when they create the issue, and to the time when we "take" the case and start working on it.
I was quite surprised to find out that you can not get this in Jiras default reporting tools. I have searched for relevant Add-Ons, but most reporting tools is very pricy, and I'm not even sure whether they offer this functionality or not. Isn't this a normal metric to want from a report?
However I found David Bevins Jira Rest Client Dot Net api. Unfortunately this api doesn't give me the opportunity to extract the relevant data (timestamps, activity etc.)
So now I have turned to Jiras rest api, and I am trying to set up a program in .NET to do it. This guy did exactly the same. As you see in his SO question, the returned JSON is a mess. Collecting all the right data will require a lot of work. So before I go further I want to know if anyone has done this before and how you did it?
Any help is appreciated.
jira jira-rest-api
For a customer I need to create monthly reports that shows, among other things, how much time an issue is spending in the different statuses (TO DO, In progress, Closed etc.). More specifically, the customer wants to see, how long it takes from the time when they create the issue, and to the time when we "take" the case and start working on it.
I was quite surprised to find out that you can not get this in Jiras default reporting tools. I have searched for relevant Add-Ons, but most reporting tools is very pricy, and I'm not even sure whether they offer this functionality or not. Isn't this a normal metric to want from a report?
However I found David Bevins Jira Rest Client Dot Net api. Unfortunately this api doesn't give me the opportunity to extract the relevant data (timestamps, activity etc.)
So now I have turned to Jiras rest api, and I am trying to set up a program in .NET to do it. This guy did exactly the same. As you see in his SO question, the returned JSON is a mess. Collecting all the right data will require a lot of work. So before I go further I want to know if anyone has done this before and how you did it?
Any help is appreciated.
jira jira-rest-api
jira jira-rest-api
asked Feb 5 at 20:14
RonRonDK
39110
39110
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
Jira has not this option by default and there is not simple way to solve it programatically.
However it is possible to get this data (but you have to use probably 3 or 4 tables from database):
1) create jira add-on and parse data there
2) use Home Directory Browser (https://marketplace.atlassian.com/plugins/info.renjithv.jira.plugins.sysadmin.homedirectorybrowser/server/overview) for getting data and then parse it in you own program
On Atlassian Marketplace is a plugin exactly for this functionality and it works very well, there are filters, time range and some export options:
https://marketplace.atlassian.com/plugins/com.obss.plugin.time-in-status/server/overview
you can tried the trial version for free.
Hi @barmi, thank you for the hint on the Time In Status add-on. I tried it out and it actually fits most of our needs, but the user experience is quite bad. Therefore I chose to go on with my own program to present the data. I have accepted your answer though.
– RonRonDK
Feb 13 at 19:45
add a comment |
up vote
0
down vote
There is a library I have created some time ago to pull metrics from Jira:
https://bitbucket.org/kaszaq/howfastyouaregoing
From what I understand you are looking for a cycle time of issue in given statuses. I think this example should help you:
package pl.kaszaq.howfastyouaregoing.examples;
import com.google.common.collect.Sets;
import java.time.LocalDate;
import java.time.Month;
import java.util.HashSet;
import java.util.OptionalDouble;
import java.util.SortedMap;
import pl.kaszaq.howfastyouaregoing.agile.AgileClient;
import pl.kaszaq.howfastyouaregoing.agile.AgileProject;
import static pl.kaszaq.howfastyouaregoing.agile.IssuePredicates.hasSubtasks;
import pl.kaszaq.howfastyouaregoing.cycletime.CycleTimeComputer;
public class CycleTimeExample {
public static void main(String args) {
AgileClient agileClient = AgileClientProvider.createClient();
runExample(agileClient);
}
private static void runExample(AgileClient agileClient) {
LocalDate from = LocalDate.of(2011, Month.JULY, 1);
int daysAverage = 30;
LocalDate to = LocalDate.of(2014, Month.JANUARY, 1);
AgileProject agileProject = agileClient.getAgileProject("MYPROJECTID");
String cycleTimeStatuses = {"In Progress", "Ready for Testing"};
final HashSet<String> finalStatuses = Sets.newHashSet("Closed");
SortedMap<LocalDate, Double> cycleTime = CycleTimeComputer.calulcateCycleTime(agileProject, hasSubtasks().negate(), finalStatuses, cycleTimeStatuses);
System.out.println(
"tCycle time for issues that do not have sub tasks in hours");
for (LocalDate k = from; !k.isAfter(to); k = k.plusDays(daysAverage)) {
OptionalDouble valueOptional = cycleTime.subMap(k.minusDays(daysAverage), k.plusDays(1)).values().stream()
.mapToDouble(val -> val)
.average();
if (valueOptional.isPresent()) {
System.out.println(k + "t" + valueOptional.getAsDouble());
}
}
}
}
https://bitbucket.org/kaszaq/howfastyouaregoing/src/5a2ab64e2304f22b3e82beaf427487f8a8a8e1e7/howfastyouaregoing-examples/src/main/java/pl/kaszaq/howfastyouaregoing/examples/CycleTimeExample.java?at=default&
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48630753%2fcreate-report-in-jira-showing-time-spent-in-status%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Jira has not this option by default and there is not simple way to solve it programatically.
However it is possible to get this data (but you have to use probably 3 or 4 tables from database):
1) create jira add-on and parse data there
2) use Home Directory Browser (https://marketplace.atlassian.com/plugins/info.renjithv.jira.plugins.sysadmin.homedirectorybrowser/server/overview) for getting data and then parse it in you own program
On Atlassian Marketplace is a plugin exactly for this functionality and it works very well, there are filters, time range and some export options:
https://marketplace.atlassian.com/plugins/com.obss.plugin.time-in-status/server/overview
you can tried the trial version for free.
Hi @barmi, thank you for the hint on the Time In Status add-on. I tried it out and it actually fits most of our needs, but the user experience is quite bad. Therefore I chose to go on with my own program to present the data. I have accepted your answer though.
– RonRonDK
Feb 13 at 19:45
add a comment |
up vote
1
down vote
accepted
Jira has not this option by default and there is not simple way to solve it programatically.
However it is possible to get this data (but you have to use probably 3 or 4 tables from database):
1) create jira add-on and parse data there
2) use Home Directory Browser (https://marketplace.atlassian.com/plugins/info.renjithv.jira.plugins.sysadmin.homedirectorybrowser/server/overview) for getting data and then parse it in you own program
On Atlassian Marketplace is a plugin exactly for this functionality and it works very well, there are filters, time range and some export options:
https://marketplace.atlassian.com/plugins/com.obss.plugin.time-in-status/server/overview
you can tried the trial version for free.
Hi @barmi, thank you for the hint on the Time In Status add-on. I tried it out and it actually fits most of our needs, but the user experience is quite bad. Therefore I chose to go on with my own program to present the data. I have accepted your answer though.
– RonRonDK
Feb 13 at 19:45
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Jira has not this option by default and there is not simple way to solve it programatically.
However it is possible to get this data (but you have to use probably 3 or 4 tables from database):
1) create jira add-on and parse data there
2) use Home Directory Browser (https://marketplace.atlassian.com/plugins/info.renjithv.jira.plugins.sysadmin.homedirectorybrowser/server/overview) for getting data and then parse it in you own program
On Atlassian Marketplace is a plugin exactly for this functionality and it works very well, there are filters, time range and some export options:
https://marketplace.atlassian.com/plugins/com.obss.plugin.time-in-status/server/overview
you can tried the trial version for free.
Jira has not this option by default and there is not simple way to solve it programatically.
However it is possible to get this data (but you have to use probably 3 or 4 tables from database):
1) create jira add-on and parse data there
2) use Home Directory Browser (https://marketplace.atlassian.com/plugins/info.renjithv.jira.plugins.sysadmin.homedirectorybrowser/server/overview) for getting data and then parse it in you own program
On Atlassian Marketplace is a plugin exactly for this functionality and it works very well, there are filters, time range and some export options:
https://marketplace.atlassian.com/plugins/com.obss.plugin.time-in-status/server/overview
you can tried the trial version for free.
answered Feb 5 at 23:35
barmi
410217
410217
Hi @barmi, thank you for the hint on the Time In Status add-on. I tried it out and it actually fits most of our needs, but the user experience is quite bad. Therefore I chose to go on with my own program to present the data. I have accepted your answer though.
– RonRonDK
Feb 13 at 19:45
add a comment |
Hi @barmi, thank you for the hint on the Time In Status add-on. I tried it out and it actually fits most of our needs, but the user experience is quite bad. Therefore I chose to go on with my own program to present the data. I have accepted your answer though.
– RonRonDK
Feb 13 at 19:45
Hi @barmi, thank you for the hint on the Time In Status add-on. I tried it out and it actually fits most of our needs, but the user experience is quite bad. Therefore I chose to go on with my own program to present the data. I have accepted your answer though.
– RonRonDK
Feb 13 at 19:45
Hi @barmi, thank you for the hint on the Time In Status add-on. I tried it out and it actually fits most of our needs, but the user experience is quite bad. Therefore I chose to go on with my own program to present the data. I have accepted your answer though.
– RonRonDK
Feb 13 at 19:45
add a comment |
up vote
0
down vote
There is a library I have created some time ago to pull metrics from Jira:
https://bitbucket.org/kaszaq/howfastyouaregoing
From what I understand you are looking for a cycle time of issue in given statuses. I think this example should help you:
package pl.kaszaq.howfastyouaregoing.examples;
import com.google.common.collect.Sets;
import java.time.LocalDate;
import java.time.Month;
import java.util.HashSet;
import java.util.OptionalDouble;
import java.util.SortedMap;
import pl.kaszaq.howfastyouaregoing.agile.AgileClient;
import pl.kaszaq.howfastyouaregoing.agile.AgileProject;
import static pl.kaszaq.howfastyouaregoing.agile.IssuePredicates.hasSubtasks;
import pl.kaszaq.howfastyouaregoing.cycletime.CycleTimeComputer;
public class CycleTimeExample {
public static void main(String args) {
AgileClient agileClient = AgileClientProvider.createClient();
runExample(agileClient);
}
private static void runExample(AgileClient agileClient) {
LocalDate from = LocalDate.of(2011, Month.JULY, 1);
int daysAverage = 30;
LocalDate to = LocalDate.of(2014, Month.JANUARY, 1);
AgileProject agileProject = agileClient.getAgileProject("MYPROJECTID");
String cycleTimeStatuses = {"In Progress", "Ready for Testing"};
final HashSet<String> finalStatuses = Sets.newHashSet("Closed");
SortedMap<LocalDate, Double> cycleTime = CycleTimeComputer.calulcateCycleTime(agileProject, hasSubtasks().negate(), finalStatuses, cycleTimeStatuses);
System.out.println(
"tCycle time for issues that do not have sub tasks in hours");
for (LocalDate k = from; !k.isAfter(to); k = k.plusDays(daysAverage)) {
OptionalDouble valueOptional = cycleTime.subMap(k.minusDays(daysAverage), k.plusDays(1)).values().stream()
.mapToDouble(val -> val)
.average();
if (valueOptional.isPresent()) {
System.out.println(k + "t" + valueOptional.getAsDouble());
}
}
}
}
https://bitbucket.org/kaszaq/howfastyouaregoing/src/5a2ab64e2304f22b3e82beaf427487f8a8a8e1e7/howfastyouaregoing-examples/src/main/java/pl/kaszaq/howfastyouaregoing/examples/CycleTimeExample.java?at=default&
add a comment |
up vote
0
down vote
There is a library I have created some time ago to pull metrics from Jira:
https://bitbucket.org/kaszaq/howfastyouaregoing
From what I understand you are looking for a cycle time of issue in given statuses. I think this example should help you:
package pl.kaszaq.howfastyouaregoing.examples;
import com.google.common.collect.Sets;
import java.time.LocalDate;
import java.time.Month;
import java.util.HashSet;
import java.util.OptionalDouble;
import java.util.SortedMap;
import pl.kaszaq.howfastyouaregoing.agile.AgileClient;
import pl.kaszaq.howfastyouaregoing.agile.AgileProject;
import static pl.kaszaq.howfastyouaregoing.agile.IssuePredicates.hasSubtasks;
import pl.kaszaq.howfastyouaregoing.cycletime.CycleTimeComputer;
public class CycleTimeExample {
public static void main(String args) {
AgileClient agileClient = AgileClientProvider.createClient();
runExample(agileClient);
}
private static void runExample(AgileClient agileClient) {
LocalDate from = LocalDate.of(2011, Month.JULY, 1);
int daysAverage = 30;
LocalDate to = LocalDate.of(2014, Month.JANUARY, 1);
AgileProject agileProject = agileClient.getAgileProject("MYPROJECTID");
String cycleTimeStatuses = {"In Progress", "Ready for Testing"};
final HashSet<String> finalStatuses = Sets.newHashSet("Closed");
SortedMap<LocalDate, Double> cycleTime = CycleTimeComputer.calulcateCycleTime(agileProject, hasSubtasks().negate(), finalStatuses, cycleTimeStatuses);
System.out.println(
"tCycle time for issues that do not have sub tasks in hours");
for (LocalDate k = from; !k.isAfter(to); k = k.plusDays(daysAverage)) {
OptionalDouble valueOptional = cycleTime.subMap(k.minusDays(daysAverage), k.plusDays(1)).values().stream()
.mapToDouble(val -> val)
.average();
if (valueOptional.isPresent()) {
System.out.println(k + "t" + valueOptional.getAsDouble());
}
}
}
}
https://bitbucket.org/kaszaq/howfastyouaregoing/src/5a2ab64e2304f22b3e82beaf427487f8a8a8e1e7/howfastyouaregoing-examples/src/main/java/pl/kaszaq/howfastyouaregoing/examples/CycleTimeExample.java?at=default&
add a comment |
up vote
0
down vote
up vote
0
down vote
There is a library I have created some time ago to pull metrics from Jira:
https://bitbucket.org/kaszaq/howfastyouaregoing
From what I understand you are looking for a cycle time of issue in given statuses. I think this example should help you:
package pl.kaszaq.howfastyouaregoing.examples;
import com.google.common.collect.Sets;
import java.time.LocalDate;
import java.time.Month;
import java.util.HashSet;
import java.util.OptionalDouble;
import java.util.SortedMap;
import pl.kaszaq.howfastyouaregoing.agile.AgileClient;
import pl.kaszaq.howfastyouaregoing.agile.AgileProject;
import static pl.kaszaq.howfastyouaregoing.agile.IssuePredicates.hasSubtasks;
import pl.kaszaq.howfastyouaregoing.cycletime.CycleTimeComputer;
public class CycleTimeExample {
public static void main(String args) {
AgileClient agileClient = AgileClientProvider.createClient();
runExample(agileClient);
}
private static void runExample(AgileClient agileClient) {
LocalDate from = LocalDate.of(2011, Month.JULY, 1);
int daysAverage = 30;
LocalDate to = LocalDate.of(2014, Month.JANUARY, 1);
AgileProject agileProject = agileClient.getAgileProject("MYPROJECTID");
String cycleTimeStatuses = {"In Progress", "Ready for Testing"};
final HashSet<String> finalStatuses = Sets.newHashSet("Closed");
SortedMap<LocalDate, Double> cycleTime = CycleTimeComputer.calulcateCycleTime(agileProject, hasSubtasks().negate(), finalStatuses, cycleTimeStatuses);
System.out.println(
"tCycle time for issues that do not have sub tasks in hours");
for (LocalDate k = from; !k.isAfter(to); k = k.plusDays(daysAverage)) {
OptionalDouble valueOptional = cycleTime.subMap(k.minusDays(daysAverage), k.plusDays(1)).values().stream()
.mapToDouble(val -> val)
.average();
if (valueOptional.isPresent()) {
System.out.println(k + "t" + valueOptional.getAsDouble());
}
}
}
}
https://bitbucket.org/kaszaq/howfastyouaregoing/src/5a2ab64e2304f22b3e82beaf427487f8a8a8e1e7/howfastyouaregoing-examples/src/main/java/pl/kaszaq/howfastyouaregoing/examples/CycleTimeExample.java?at=default&
There is a library I have created some time ago to pull metrics from Jira:
https://bitbucket.org/kaszaq/howfastyouaregoing
From what I understand you are looking for a cycle time of issue in given statuses. I think this example should help you:
package pl.kaszaq.howfastyouaregoing.examples;
import com.google.common.collect.Sets;
import java.time.LocalDate;
import java.time.Month;
import java.util.HashSet;
import java.util.OptionalDouble;
import java.util.SortedMap;
import pl.kaszaq.howfastyouaregoing.agile.AgileClient;
import pl.kaszaq.howfastyouaregoing.agile.AgileProject;
import static pl.kaszaq.howfastyouaregoing.agile.IssuePredicates.hasSubtasks;
import pl.kaszaq.howfastyouaregoing.cycletime.CycleTimeComputer;
public class CycleTimeExample {
public static void main(String args) {
AgileClient agileClient = AgileClientProvider.createClient();
runExample(agileClient);
}
private static void runExample(AgileClient agileClient) {
LocalDate from = LocalDate.of(2011, Month.JULY, 1);
int daysAverage = 30;
LocalDate to = LocalDate.of(2014, Month.JANUARY, 1);
AgileProject agileProject = agileClient.getAgileProject("MYPROJECTID");
String cycleTimeStatuses = {"In Progress", "Ready for Testing"};
final HashSet<String> finalStatuses = Sets.newHashSet("Closed");
SortedMap<LocalDate, Double> cycleTime = CycleTimeComputer.calulcateCycleTime(agileProject, hasSubtasks().negate(), finalStatuses, cycleTimeStatuses);
System.out.println(
"tCycle time for issues that do not have sub tasks in hours");
for (LocalDate k = from; !k.isAfter(to); k = k.plusDays(daysAverage)) {
OptionalDouble valueOptional = cycleTime.subMap(k.minusDays(daysAverage), k.plusDays(1)).values().stream()
.mapToDouble(val -> val)
.average();
if (valueOptional.isPresent()) {
System.out.println(k + "t" + valueOptional.getAsDouble());
}
}
}
}
https://bitbucket.org/kaszaq/howfastyouaregoing/src/5a2ab64e2304f22b3e82beaf427487f8a8a8e1e7/howfastyouaregoing-examples/src/main/java/pl/kaszaq/howfastyouaregoing/examples/CycleTimeExample.java?at=default&
answered Nov 19 at 23:41
Kaszaq
513713
513713
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48630753%2fcreate-report-in-jira-showing-time-spent-in-status%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown