Hi
Can we restrict work logging for certain issue types on jira either using certain settings or using Behaviour script?
If it can be done using behaviour, a reference links would be of great help!!
You could use Web Fragments in ScriptRunner and create the Hide system or plugin UI element. If would look like this:
Or you could use wokflow properties. You can find more info here:
http://www.j-tricks.com/tutorials/permissions-based-on-workflow-status
is the first option hides the "Log Work" in the issue view page?
I tried doing this, though not working.
In the Workflow properties, i can assign it for users, group and roles and not Issue types.
any other options?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Log work button.
Maybe it is not a core Jira log work button, but a Tempo work log button?
2. Workflow properties.
You should make different workflows for issue types
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to completely disable it, you need to edit the statement to be "truthy" against Task. Meaning, if the issue type is NOT Task, then show the button.
!= "Task" rather than == "Task"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This work for me:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.