Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Default remaining time estimate to 0h on transition

Arin Lipman July 17, 2020

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".

1 answer

0 votes
Leonard Chew
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2020

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.

behaviourscreen.png

Arin Lipman July 17, 2020

Thank you for the tip, but it did not work.image.pngimage.png

Leonard Chew
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2020

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:

timetracking.png

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.

Arin Lipman July 17, 2020

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.

Arin Lipman July 21, 2020

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?

Leonard Chew
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2020

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'.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.8
TAGS
AUG Leaders

Atlassian Community Events