I am trying figure out if I can add an .sil condition to the "create" transition in my workflow where, depending on the value of a particular field, it either goes down "Path 1" or "Path 2" of the workflow. To give a little more context, I'm aware that you can't create custom epics in Jira, so Im basically trying to create 2 workflows in 1 issue type.
Ex. EPIC-123 has a field called "Epic Type" (drop down, single-choice field)
IF EPIC-123, Epic Type = "Type A" THEN Status = "Ready For Review"
IF EPIC-123, Epic Type = "Type B" THEN Status = "To-Do"
Something to that effect. the "Type B" in this scenario is a super simple "To Do, In Progress, Done" that a lot of users don't want modified. But the "Type A" Epic, has a very specific and very different set of steps and validations.
All this being said, I am open to alternative ideas. I went through a lengthy process of creating an additional issue type, setting up notification schemes, workflow post-functions etc. only to then find out, that I can't leverage Parent Link the same way actual Epics do. Also, can't use epic links, colors, etc. So this .sil script is my Plan B.
Community moderators have prevented the ability to post new answers.
Hello @Danny Davidson ,
I would create a workflow, which would include all necessary statuses for Type A or Type B and then use workflow conditions to show required statuses.
For example,
Let's say you have a status named Open. Then for Epic Type A you need to go from Open to Under Review and for Epic Type B you need to go from Open to To Do.
You create the following workflow:
Then you add the following scripts to To Do and Under Review transitions:
To Do:
if #{Epic Type} == "Type A" {
return true;
}
return false;
Under Review:
if #{Epic Type} == "Type B" {
return true;
}
return false;
As a result if an epic of Type A is in the Open status then only To Do transition will be available. If an epic of Type B is in the Open status then only the Under Review transition will be available.
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Apply agile practices
Transform how you manage your work with agile practices, including kanban and scrum frameworks.
Learning Path
Configure agile boards for Jira projects
Learn how to create and configure agile Jira boards so you can plan, prioritize, and estimate upcoming work.
Jira Essentials with Agile Mindset
Suitable for beginners, this live instructor-led full-day course will set up your whole team to understand how to use Jira with an agile methodology.
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.