Hello Brothers and Sisters
i have a tricky case. We know that during story creation we cannot make Epic Link as MANDATORY. But I build transition validation which requires Epic Link when status changes.
My problem is, how can I also dis-allow linking with EPIC that is resolved...?
Hi Mateusz,
I'm not aware of any way to disallow linking of resolved Epics, but you could do something alternative if you're keen on preventing the transition.
1) If you have scriptrunner, use a scriptrunner validator to prevent transitions of work items with a linked resolved epic. use a meaningful error message to let your users know why they cant transition
2) You can use a scriptrunner listener to remove linking if resolved epic is detected. if the user acts quick, there is potential that they make a transition before listener triggers its action, so it's not bulletproof
3) If you don't have script runner, you can build an automation to check the for linked resolved epics after transition and reverse the transition to previous status with a meaningful comment posted to the work item. you'd need to allow transition into previous status in your workflow to do this
I hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.