Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

component restriction according to issuetype

Marzi Goodarzian
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 Champions.
April 10, 2022

Hi

In my project with story- subtask structure, in story when apply "Create subtask" button , we need to restrict component according to subtask issuetype , like as below pic:

125.png

for example:

when issuetype is 1:

component can show only 1, 1-1, 1-1-1

when issuetype is 2:

component can show only 2, 2-2, 2-2-2

How do this ?

Thanks

2 answers

1 vote
Jorden Van Bogaert
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 Champions.
April 10, 2022

Hi @Marzi Goodarzian 

By default, there's no way to limit components based on the issue type. You can however achieve it by using the "behaviours" feature in ScriptRunner for Jira.

The script you need has already been answered in a similar community question.

Hope this helps.
Kind regards
Jorden

Suggest an answer

Log in or Sign up to answer