Jira Timesheet plugin - Show entries created by user

Hi, nice plugin, but we're forced by our works concil to set the field "Show entries created by user" inactive.

Is there a way to set this field inactive or invisible with the current user as default value?

Best regards

Ralph

1 answer

1 accepted

Hi Ralph,

You can remove that property (targetUser) manually in atlassian-plugin.xml, update the jar and reinstall it.

Note, there is Pivot report also which will show all users worked hours, so you might want to remove whole projectpivot section from the xml too.

Thank you.

Hi Andriy,

thanks for quick answering, but the solution you posted yesterday doesn't work. I've unpacked the jar file, removed the whole property containing the key targetUser from the file atlassian-plugin.xml, rebuild the jar file with java's jar reinstalled the plugin and finaly I've restarted Jira. But the field is still available and it is still working.

I found a workarround by removing the references to this key in the timesheet-gadget.xml and the gadget.xml, so that the values I put into this field are ignored, but it might be more usefull if the field is not visibile.

Best regards

Ralph

Hi Ralph,

You've done everyting correctly, including JIRA restart, it's really needed to notice the changes. But those instructions were for the report :) If you'd like to remove corresponding gadget setting, you need to edit timesheet.gadget.js, find getDescriptor function, then this line in it:

descriptor.fields.splice(2,0

and remove first object in it, the following one:

{
            userpref: "user",
            label: getMsg("gadget.pref.label.user"),
            type: "text",
            value: gadget.getPref("user")
            },

Note, removing references to targetUser in gadget.xml timesheet-gadget.xml are also needed then.

And once again, have you seen Timesheet and Pivot reports in the Project reports section? You might want to take care of them, as in my first comment.

Thank you.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,316 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot