Hi,
I have a select list field "Epic type" on epic which has some values like architecture , development ,etc. Some stories are linked to these epics.
Currently I have constraint in the story workflow which restrict stories from moving into "in progress" status until Sprint field is filled.
What I want is, to make this sprint optional on story which are linked to epics having types as "Architecture".
Is it possible?
Hi @Omkar Rajale , if you are asking if you can make your condition optional in your workflow based on the associated parent having a specific field value, then the answer is no at least natively. What you could do is have a different issue type for your stories associated to architecture, Epics. Then you could have a different workflow for those architectural story types.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is quite complex, and you would need an app for that. It can be done with a custom Jira expression-based validator. There are several options available on the Atlassian marketplace.
I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira free app.
I think the expression you need is something like following:
issue.parent && issue.parent.customfield_xyz?.value == 'Architecture'
? true
: issue.sprint != null
Which allows the transition if the story is part of the Epic (has a parent) and a custom field is set to 'Architecture'; otherwise, a sprint is required.
You need to change the ID of the custom field to a valid one. In the editor start typing the name of the Epic type field, you will get suggestions with the correct value.
I am leaving a link to the app's documentation if you are interested.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.