I would like to have the Resolve screen default to show 0h remaining on a transition. I've been instructed that there are some scenarios where the user may want to change this default, so I cannot set in a post-function. Is there any way to set this default on the screen?
I've attempted to use ScriptRunner, but have not found out how to set the radio button for "Set remaining estimate".
Hi there
Yes, you can do that with scriptrunner by adding a behaviour as shown in the screenshot.
Specify your workflow, conditions and serverside script in the behaviour.
Also make sure the timetracking fields are in the transition screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, on my issue screens (Jira 8.5.3), the Time Tracking field-group does not include the "Time Spent" field, so there is no radio button that disturbes setting the value.
Here is how it looks:
I was not able to find out where to configure the "Time Tracking" field-group, so that it does not include the "Time Spent" field. Im quite sure however that you can configure that somewhere, and then the behaviour should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interesting. I have the Log Work field in that screen. If I add (not even removing the Log Work field) , I get the fields you have.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, I can't use the Time Tracking field. We need the Log Work option so the developers are able to log their time when they resolve an issue.
Any further ideas? Is there an easy way to find the ids/name of fields for scriptrunner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a tricky one.
When using the "Log Work" Field Group, "Remaining Estimate" is a Field-Group within the Field Group.
It also seems to be a special kind of Radio-Button Options group, which probably can't be accessed by the setFieldOptions() function.
I don't know how to enable the Radio-Button Option, and also set the corresponding value to '0' on top of it without using Javascript.
Maybe @Nic Brough -Adaptavist- can help, but I'm at a dead end here.
As alternative you could use a postfunction and conditionally set the remaining estimate to '0', if it is left empty in the resolve screen, so when the user sets a value, the value is taken, else it is set to '0'.
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.