Forums

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

Can I exclude issue creation for a workflow except as a child issue?

Phil Bustin
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.
December 8, 2023

I have 3 workflows--Dev Story, Dev Task, and Software Move Task, in the Sandbox. 

I would like to prevent creation of issues for the Dev Story workflow except as child issues from Epics or possibly from a project we created called "Initiatives".

Similarly, I'd like to prevent creation of issues for the other two workflows, except as child issues from the Dev Story workflow.

Can this be done, and if so, how, please?

I've tested submitting issues in the Dev Story workflow using the Create child worfklow (I think that's what the link is called) in Epics, so I know that works.  What I don't know is how to prevent users from creating issues using the Dev Story workflow independent of Epics.  The IssueType of Dev Story is "Dev Story".

Happy to provide more information if you need it.

1 answer

0 votes
Murat Seven
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.
December 11, 2023

Hi @Phil Bustin and thanks for your question.

 

Could you please check if the Scriptrunner plugin is installed? As per my knowledge, you can't achieve this with Jira's default features. If the plugin is installed, you can add a validator to the workflow using "Add Parameters To Validator." With a script similar to the one in the image I provided, you can prevent someone from creating a request other than a child issue. If you encounter any issues, feel free to reach out.

 

Screen Shot 2023-12-11 at 12.47.20 PM.png

 

Best,

Murat Seven

Suggest an answer

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

Atlassian Community Events