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

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

576 views 25 15
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