I have resolution screen with 'log work' fields (time spent, remaining estimate), which appears on the 'Resolve' transition. Also I have added post-function to 'Resolve' transition setting remaining estimate to 0h. But the problem is that post-function works before log work fields values are stored into database. More specifically, remaining estimate is updated automatically based on 'original estimate' and 'time spent' values after it was flushed by post-function.
Is there a way to make my post-function work after resolution screen fields update?
Edit: here is the screenshot of post-functions ordering:
It turns out that I needed to use 'Set Field Value' post-function (choose 'Remaining Estimate' field and '0h' as a value) instead of 'Clear Field Value' post-function in order to reset remaining estimate on resolution.
Try adding the Store issue post function after each of the 2 postfunction you have added to purge the fields
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not have 'Store issue' post-function at the list of post-functions in my JIRA. Do I need to install some plugin in order to make it avilable?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hm, maybe is a question of the tool used to do this ...
Try this one:https://marketplace.atlassian.com/plugins/com.keplerrominfo.jira.plugins.jjupin
create a post function, put it at the end, edit it and just write as the postfunction body:
estimate = "0h"
That should do the trick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it worked. but I'm not sure I can persuade management to buy jjupin (even though it is not that expensive) plugin only for the minor task of remaining estimate reset just because JiraCannotDoItOutOfTheBox ... :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yeah, I know. But isn't it funny .... :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you're trying to do too much in the one step. The data submitted as part of the form, doesn't get saved until the end. So if you have apost function which finds the issue, it's probably pulling data from the database (which hasn't been updated yet with the data submitted in the form).
Any kind of function to over-write data entered by the suer will have to go just before the fire issue post function and it will also have to manually perform a re-index. Just be careful, if you use high level helper functions, to do the update, you could end up also firing an update event as well as your issue resolved event.
The other option is that you create a loopback transition (Resolved -> resolved) that has condition that will only let it happen if the remaining estimate != 0, then you make it an automatic transition by exporting it xml and adding the auto attribute
In this transition, you would put the custom post function which would just wipe remaining estimate. So when a user triggers resolved transaction and estimate !=0, it auto fires
Mind you sounds like a lot of fuss to do soemthing not very conventional either. Why not leave the data in place and use it to improve estimate
?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey.
can you post a screen shot of your postfunctions?
maybe re-ordering the functions could help.
i.e. place the function below the field update
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
screenshot has been added
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
on your resolution screen (default) there should appear "Remaining Estimate"....isn't this set to "Adjust automatically" ?
i just tried...
created an issue and set due to tomorrow...
if i click resolve and leave "remaining estimate" on "adjust auto..." the worklog shows "Remaining: 0m"
i wonder what you're tryin to achieve
maybe the postfuction that purges Remaining Estimate is the wrong step
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not know how you have managed to do this :), but when I resolve issues and set 'time spent' on the resolution screen using default JIRA configuration, remaining estimate is not set to 0h automatically by default (without any post-functions).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
so i also wonder how this is not working for you :)
i simply hit resolve...added 5m to time spent and left the selection for "Remaining Estimate" to "Adjust automatically"...no more tricks...
also no custom postfunctions are configured (only the defaults)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did you have original estimate?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
, did you have original estimate?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
no i didn't set estimate during create..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the whole point is that original estimate should be set so that remaining estimate will be calculated as the difference originalEstimate - timeSpent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes you're right...
remaining estimate will be the value ("original Estimate" reduced by "time spent")
i just added original estimate and the remaining estimate is set that way
that is not the solution you want?
do you want remaing estimate to be set to 0h when the issue gets resolved?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, that's right. I want remaing estimate to be set to 0h when the issue gets resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.