is it possible to set security level for work log?

Hi,all!

Is it possible to set security level or restriction for work log? For example, we have group A and group B, both groups can browse project, but only one of them can browse log work. The second group can't browse log work, spent time, estimated hours and etc...

I try to use Behaviour plugin, but it doesn't work.

2 answers

0 votes

You can do that in the basic permissions stuff, you don't need behaviours. Go into the permission scheme for the project and look for the "worklog" section - you'll find you can enable browse/log/edit/delete for worklogs on a group/role basis (And some more powerful stuff, e.g. "only assignee can log work")

Sorry,but i see only:

Work On Issues

Edit Own Worklogs

Edit All Worklogs

Delete Own Worklogs

Delete All Worklogs

And all users with permission "Browse project" can browse worklog.

Oh, I'm sorry, I misunderstood the question. I read it as a statement of how things are working now and hence you were stuck on permissions.

If I've got it right this time, then your question is really "How do I ide worklogs from a group of users?".

Jira doesn't do field level security - if you can see the issue, you can see all the fields on it. That's why things like the behaviours plugin exist, they enable that sort of functionality. I think you've chosen the right way to do it, by choosing the behaviours plugin.

But you'll have to explain what "it doesn't work" means. (That's a bit like saying "my car doesn't work" to a mechanic over the 'phone, but not telling him whether the engine won't start, or a wheel has fallen off...) Tell us what you've tried to do with it and what the results are (does the view screen change at all?)

My english is not very well :)

I have problems with this line: FormField Field = getFieldById("???") I don't know which id or name i should write here.

Nah, your English is fine, it's my reading that needs work sometimes :-)

The getFieldById needs the ??? replaced with the ID for the custom field that gets generated by Jira as it builds the html for the screen. I can never remember what the rules are, so I always do it by digging through the page.

Open up the screen you want to hide the field on.

Press ctrl-u to open the source html of the page (Firefox and Chrome shortcut, can't remember if it's the same in IE - I gave up using that years ago, but you're looking for something like "view source" in the menus)

Go find the html for your field - use search to find the name of the field. For example, my "Story Points" field:

{code}

<tr id="rowForcustomfield_10362">

<td bgcolor="#f0f0f0" width="20%" valign="top"><b>Story Points:</b></td>

<td bgcolor="#ffffff" width="80%">

4

</td>

</tr>

{code}

Look for the id tag in the block of code. For a custom field, you use the number after the _. For a system field, you'll find it's a word (e.g. resolution)

I know it.. Work log is a default field, but i don't know its name in base. I have tried: work log,log work, timespent and all combinations of words from these pages: http://confluence.atlassian.com/display/JIRA/Logging+Work+on+an+Issue

http://confluence.atlassian.com/display/JIRA041/Database+Schema#DatabaseSchema-Worklogs

Also in my native language :)

that's why i have concluded that this plugin doesn't work..

Dieter Community Champion May 13, 2012
No guarantee it works but the official names of the system fields can be found here: http://docs.atlassian.com/jira/latest/constant-values.html#com.atlassian.jira.issue.IssueFieldConstants.TIMETRACKING

it doesn't work :(

Does anybody has found a solution or a workaround for this problem? I tried to hide the WorkLog / TimeTracking field since hours and can't find a way to do so

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,149 views 13 19
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