How to hide sub-tasks for certain people using scriptrunner?

Yousif Al Rawahi April 1, 2024

How to hide sub-tasks for certain people using scriptrunner?

For example,

Name of the sub-task: Line Manager Tasks

User: Yousif Al Rawahi

1 answer

0 votes
Oday Rafeh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 2, 2024

Hi @Yousif Al Rawahi , 

ScriptRunner doesn't offer direct sub-task hiding based on users, but there are two approaches you can consider using ScriptRunner behaviors in Jira:

Create a ScriptRunner behavior that restricts visibility of sub-tasks with specific names (e.g., “Line Manager Tasks”)

And 

Create a custom field (e.g., “Visible to Line Managers”) on sub-tasks.
Use a ScriptRunner behavior to populate this field with “Yes” only for sub-tasks named “Line Manager Tasks.”
Configure your Jira screens to hide the “Visible to Line Managers” field for everyone except the Line Manager group.

 

If you need more help writing the scripts ;et me know. 

 

Regards 

Oday

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events