How do I change it so the time estimate fields are only used for technical sub-tasks?

I don't want a bug reporter, or story requester, to see the fields relevant to time estimates. I'd like to only use them for technical sub-tasks.

For custom fields, this is easy. When I add a new custom field, it asks me which screens I'd like it to apply to, and which issue types.

But for existing fields, like the time estimate field, I don't see anywhere where I can select which issue types it should be relevant to.

2 answers

You will need to create different screen schemes. One for the technical sub-task, which has a screen or screens with work logging in it/them, and then either one screen scheme for all other issue types (or one for each, if they each have different field needs) where you do not have work logging in the create screen but do for the edit and/or view screen(s).

Time tracking fields (orginal estimate, remaining estimate) are shown based on whether you add/remove the field by the 'Time Tracking' in the screen.

For work logging, AFAIK, you cannot remove it directly per issue type. But you can achieve that part with with a javascript workaround. Add this to the announcement banner (change the issue type name as needed)

<script type='text/javascript'>
AJS.$(document).ready(function() {
    var type = AJS.$("#type-val").find('img').eq(0).attr("alt");
    if(type != 0 && type != "Bug") {
        AJS.$("#timetrackingmodule").hide();
        AJS.$("#log-work").hide();
    }
});
</script>

Hi Renjith,

I don't specifically want to remove the work logging. I don't mind if people log work on any kind of issue.

I just want to remove the fields that ask for time estimates when creating a new issue, unless it's a technical sub-task. Is that possible?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

150 views 1 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you