How can I change the Security Level on a sub-task to be different from the parent?

How can I change the Security Level on a sub-task to be different from the parent? Now the edit screen says "The security level of subtasks is inherited from parents."

13 answers

1 accepted

2 votes

You can't do it. The child issue will always inherit the security level of the parent.

I want the parent to be visible to one group and the subtasks to be visible to a different group

Is this just a question about security level field or you want to achieve that different people have access to task and it's subtasks?

0 vote

Ah, well, you can't do that with security levels, but what you could try is putting a user group picker on the issues and using that in a security level. That way, you can say "visible to group:" But it is an additional field.

You can try and prepare workaround to achieve this:
1. Create custom field Group_Name_x (Group Picker type) and add it to screens
2. Add all groups with people whose are candidates to have access to browse permission (or to role and then this role to browse permission)
3. Add Custom field Group_Name_x to security level. Be carefull and don't include people from groups for subtasks to this security level.
4. Now you can add different values in Custom field Group_Name_x (when create/edit task or subtask)

Sorry, Nic. I didn't see your comment.

0 vote

S'ok, you gave a set of instructions as well as the basic principles - that's a better answer for her :-)

Thank you both!!!

You can do it without using script is you add a Post Function 'If user is a member of the Internal Access role, set issue security level to Internal' at the Create Issue stage. I have also added a validator that states 'Only users with Edit Issues permission can execute this transition. ' as our clients do not have edit rights. This way all our sub-tasks stay internal.

0 vote

Actually, that fails, as there is no security level on the sub-task.

Hi Nic, we have a security level called Internal and the only group with access to it is a group with internal users so it does work. Every sub-task created of a client specific log is automatically set with 'Internal' security level and it is only visible to internal users.

0 vote

I've just tried it, it fails, unless the parent is internal as well.  Because that's what JIRA uses.

Hmm, maybe below plugin is enabling this for us because it works in our system.

JIRA Misc Workflow Extensions

 

Anyhow, it works for us so I thought I will share.

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 yesterday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

117 views 0 2
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