The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Behaviours Time Tracking fields

Steven Mustari
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 Champions.
January 21, 2020

I've seen a few topics on this unfortunately I can't seem to get my desired result. Is it possible to manipulate the "Time Tracking" field to hide the remaining estimate and Date Started fields from the "bundled" Time Tracking field.

I do notice that you can hide the Time Spent, piece but I am wanting to isolate it (the exact opposite).

getFieldById("timetracking_originalestimate")
getFieldById("timetracking_remainingestimate")

These fields do nothing for me for hiding any information in the bundled field. I can't hide them.

However, Time Spent can be hidden from that bundled field. Anyone have insight if this is even possible. We just want to record hours for our Service Desk portion of our instance, we don't care about estimates for that portion.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Kenneth Hoff
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 30, 2024

This is how I hide those fields:

log-work-activate is the check box to log work.

For the Remaining Estimate field under log work I found that just hiding one of the sub-fields hides the whole field. I couldn't actually find the ID for it so I just used the Adjust automatically radio button.

def remainingEstimate = getFieldById('timetracking_remainingestimate').setHidden(true)
def originalEstimate = getFieldById('timetracking_originalestimate').setHidden(true

def logWork = getFieldById('log-work-activate').setHidden(true)
def timeSpent = getFieldById('log-work-time-logged').setHidden(true)
def dateStarted = getFieldById('log-work-date-logged-date-picker').setHidden(true)
def logWorkRemainingEstimate = getFieldById('log-work-adjust-estimate-auto').setHidden(true)

 You can use those to hide any of the Log Work and Time Tracking Fields.

0 votes
Lekshmi S Nair
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 17, 2024

Hey ,

Anyone have answer for this question , how can we hide time tracking fields in jira using scriptrunner behaviour.