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 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 Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

696 views 6 13
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