I want to change status as active or Expire based on time
please help me build my code. I am attaching my build code.
Related
I looked through the hotkeys, and can not find a way of changing the status. This would help me out seeing my timeclock system is integrated in with the "In Progress" status ( I have it set up where if a ticket's status get's put into "In Progress" it clocks that user into that job, And when one moves from "In Progress" to something else, it clocks me out of it )
To change a tickets status without your hands leaving the keyboard, hit the period (.) key and then type the name of the status you want to transition to. Some JIRA installations or situations may require you to use (gg) instead of (.) so try that too. This will work from the search results screen, agile boards, or just about anywhere where you can select a particular issue.
Be careful to make sure the result that you select shows up under the Workflow heading just in case there are other related actions that are worded in a similar fashion to your status.
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, ...
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.
This is perhaps a simple one but I have been running around in circles for a few hours trying to work out the best way to do this.
Essentially my app allows a user to create a post entry, which is then saved into core data and then posted to a web service if the Internet is available during this time the posting to the web service is done in a background thread allowing the user to carry on working.
The records are flagged SendToWebService = 1
My issue now is that the user can view a list of the entries they made in the app and select to re post it to the web service if it has not already happened, however this is causing duplicate posts as the previous background thread is still working on posting the entry as it is uploading an image or something big.
Any suggestions on how to best handle this?
Thanks
I would suggest having 3 flags for uploads in your core data object.
0 => upload failed,
1 => currently uploading,
2 => upload complete.
As soon as the user selects to upload the post set the flag to currently uploading, in which case you set the update button to a spinner or something. When it completes, either failed or finished then change the upload button to done or re-upload depending on the flag.
This seems like the obvious answer hope I understood your question correctly.
how about this, set SendToWebService=1 for the post that you are currently sending, if it goes through leave it 1 or delete the entry (depending on your implementation) but for some reason if it fails to post, set your SendToWebService back to 0. so when a post is in progress of being sent, it would appear as if its sent.
But if you want to be more transparent about the functionality, create another Boolean called InProgress or something and then turn it 1 when you are sending a request and do not let user post posts who have InProgress True and you can show which ones are in process of being sent in the UI as well, if it gets posted, turn your SendToWebService=1 , if not then Turn your InProgress again to 0
Hope that helped
In case the user is viewing the list of entries from the database than the easiest way wold be:
When post event happen, save the post in database as sent to server and start the background thread.
When the thread completes the run, check if the upload failed mark the entry in db as not uploaded, if it was with success do nothing.
By saving the state of the upload in db, the state will persist even if the user changes the screen or closes the app.
I've seen there is a new feature in Jira 4.3, issue status history, but I need more than this. I need to get all the issues of a project that had one or more statuses in a certain period. The JQL query "status was in (Open, Closed)" doesn't take a date into account and the available date fields are for the current status of the issue.
Is it possible to get all issues that had a certain status in a certain period? I have access to the SoapService of JIRA, so I can go via this way as well, although I haven't found a method that gives me back the workflow or something like that to do what I want.
Kind regards
Jannik
Trying a jquery of (status = open OR status = closed) AND (resolutionDate > date AND resolutionDate < date2) would give you all issues with status of open or closed between the dates inserted. Not sure if this is what you were looking for or not.