i want to count how many issues are in status open, and in verify (our custom flow) per day.
if today 3 issues entered into status open, and 3 entered into status verify i would like to see the result of that field saying 6.
now sure how the script should be done in SCRIPT RUNNER.
thanks guys =)
It would help if you could tell what you want to solve. JIRA allows you to define filters, that will give all the time as result a list of issues found. You can then define / use reports and / or gadgets on dashboards to display the data based on those filters.
So a solution could be:
Define a filter that searches for the issues. Something like project = XYZ AND status in (open, verify).
Save that filter under a name (e.g. "Open and verified").
Use that filter then in a gadget that displays the issues as chart, ...
Related
I'm trying to find a way to automatically change the dropdown to the next name on the list, wait for a second or so for the results below to change and then export that page as PDF!
I would do it manually but there will be about 100 names on the list!
The data pulls up fine it's just the avoiding all the manual work that would be done each month for the 100 people!
And maybe if there's a way to rename the pdf with the name of the person?
Too Much?
I
Why not make a script ?
You could first get all the item of your drop down list, then you change the cell value of your drop down list and you pause the script for 1 second.
If you need more help to do it just ask me !
this is not really resolvable in the scope of Google Sheets only. basically what you need is a macro that will run outside of the box and automate whole this process while you take a quick nap. you should look into AutoHotKey which is able to do exactly what you want with delays, auto clicking on buttons to download and stuff like that. there is full documentation on how to build your script, many tutorials and even discord channel if you need pro help. Example:
https://youtu.be/bS-ycdoOyj8
I need to automatically update statuses of issues that satisfy certain conditions (e.g. some custom date field in the issue is less than 30 days to the current date) in Jira Service Desk.
It seems like there is no suitable trigger available in the Workflow automation.
Can someone pls advise how this could be implemented?
We are using latest version of Jira running in a Cloud.
Thanks
You can add your own postfunctions to workflow transitions (in Groovy if i'm not mistaken). For that go to your workflow, select the transition and add a custom postfunction.
A different way (that may be a bit more complicated) is to work with the Jira REST API. There is also a jira-python lib that is using that API.
So you could write a script that checks all your tickets using JQL and updates these tickets according to your condition.
Syntax could be like this
def checkIssue(issue):
if issue.fields.status.name == "Done":
// do something
issues = jira_connection.search_issues("updates <- 1d")
for i in issues:
checkIssue(i)
Keep in mind that you can't simply set the status in the issue object, you have to make transitions according to your workflow. Could be like this:
jira_connection.transition_issue(issue, '212')
where 212 is the ID of your workflow transition.
I´m trying to create a gadget for the Jira Dashboard that´s quite hard to accomplish.
I need to show a list of epics with time budget and the sum of time spent as columns.
The problem I´m facing is that the time logged is not made in the epics, but in the tasks or issues inside the epic (as I think it should be) and the column on "sum of time spent" is always empty.
This means, as I see it, that I have to be able to sum up the issues inside every epic and somehow show it in the empty column of the epic I need to see.
I created a filter and I´m calling it with the "filter results" jira dashboard gadget.
I tried with the Script Runner plugin and read the API it has, but still no idea how can that be done.
Is there any idea?
Thanks in advance for any advice.
I have looked for something exactly like this recently, and am surprised that JIRA doesn't have a way to do this out of the box.
Checkout Epic Sum Up. https://marketplace.atlassian.com/plugins/aptis.plugins.epicSumUp/cloud/overview It will solve the Time Budget question, but I don't know about a Time Logged solution.
See:
https://confluence.aptis.info/display/ESU/Time+Field
"How to search a Time Field by using JQL"
You might also find some useful features in the Tempo Addon.
https://tempoplugin.jira.com/wiki/display/TEMPO/Tempo%20Timesheets%20Documentation
Since you're looking to display something on a dashboard look under the Users Guide: Tempo gadgets area.
this works with the Plugin Timesheet
https://marketplace.atlassian.com/apps/294/timesheet-reports-and-gadgets?hosting=cloud&tab=overview
1) Add the Gadget to a JIRA-Dashboard
2) Edit the Gadget appropiately
but care that you
Group by: Epic Name
and choose for
Additional Fields: Original Estimate and Remaining Estimate
Consider to set Show Details: to No
This will look something like this:
(Remaining Estimate are the numbers Right from the Original Estimate-column )
There is a status in my JIRA instance called "Ready For Test" at which the tester would validate and close the jira. I need to know the amount of time the JIRA is in that particular status since it was moved from "In Progress" to "Ready to Test".
Is there a JQL query that can do it? I need this time field to be exported to Excel as well so that I can name and shame people and ask them to close the JIRAs as soon as they can.
I don't think it is possible on clean Jira installation. There are two plugins I know providing this kind of functionality:
Time in Status - self-explanatory
Enhancer Plugin (sorry, can't post more than two links) - adds a configurable time in status custom field, bt if I remember it correctly, it can display value only after you leave the status.
These are both paid, so that can be an issue.
Another option (if you're not using OnDemand) is the Script Runner Plugin. This plugin will allow you to create your own workflow postfunctions so you can store the "Ready to Test" transition date to one custom field and either calculate time and write it to another custom field when leaving that status or write a scripted field that will calculate and display current time since entering status. This solution is free (not counting your time to implement the functions).
Thanks #SilenyHobit for the idea. Here is what I've done:
First installed JIRA Suite Utilities plugin (its FREE)
Added a custom field called RFTDate (date type control)
Added a post function in RFT transition to update RFTDate with current datetime
Voila!!!
As an alternative, you can use Status Time Jira app. It provides reports on how much time passed in each status.
Once you enter your working calendar into the app, it takes your working schedule into account too. That is, "In Progress" time of an issue opened on Friday at 5 PM and closed on Monday at 9 AM, will be a few hours rather than 3 days. It has various other reports like assignee time, status entry dates, average/sum reports by any field(eg. average in progress time by project, average cycle time by issue creation month). And all these are available as gadgets on the dashboard too.
Here is the online demo link, you can see it in action and try.
As a free solution, you can try the limited version Status Time Free.
I'm trying to use JQL to measure cycle times (the Control Chart has other issues), so I need to get the date that an issue changed status. I see that one can use the CHANGED keyword to filter issues that have changed status on certain dates, but I see no way to actually list the date of the change as a column.
Any ideas? How would you guys address this lack of visibility into cycle time data?
There is no simple solution available in JIRA at the moment. See the issue https://jira.atlassian.com/browse/JRA-12825 for the whole discussion. The argumentation of Atlassian is the following:
There exists a product Service Desk that implements the SLA feature expressed here.
There are reports and additional plugins available that give similar information to this. See the JIRA Suite Utilities which give you a UI for each issue to see the transition summary.
JQL (JIRA Query Language) was intended to select all issues that match a query, not to select special information to these issues. You have to use the configuration of the table, if it is included there as a field of the issue (which it is not).
In addition to the suggestions from mliebelt there is another at https://answers.atlassian.com/questions/128370/how-to-capture-date-of-state-change-in-jira. It requires JIRA Misc Workflow Extenstions and uses the "Copy value from field to field" function to capture the transition date in a custom field.
There is a plugin in Atlassian Marketplace called Time in Status just for that purpose. The plugin prepares a report on how much time each issue spent on each status or assignee.
Time in status is useless if need to count of Jiras that changed status on that day. Time in status widgets is useless for this