Forums

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

Create error msg while changing the workflow status

Geethanjali S J
Contributor
September 18, 2021

Hi Team, 

We have an issue type called MBI under MBI we have child issues 

The workflow for MBI is

To do - In Progress - Complete 

If all the child issues under MBI is closed/Accepted we can move the status from in progress to complete 

If any one of the child issue is not closed/accepted it should show an error message and we cannot move the status

Can anyone please help me how to do this. 

Regards, 

Geethanjali. 

 

2 answers

0 votes
Carlos Garcia Navarro
Community Champion
September 19, 2021

I know this is not the same thing that you're asking, but you could automate the transition of epics to done, when the corresponding tasks are done as described here: https://community.atlassian.com/t5/Jira-Core-Server-questions/Transition-Parent-Epic-to-done-when-tasks-are-done/qaq-p/1440449

0 votes
Tinker Fadoua
Community Champion
September 18, 2021

@Geethanjali S J 

Are you using any plugins? or you want this behaviour in Jira without the use of a plugin?

Best,

Fadoua

Geethanjali S J
Contributor
September 19, 2021

We don't use any plugins and our instance is jira cloud. 

Like Tinker Fadoua likes this
Tinker Fadoua
Community Champion
September 19, 2021

When you want a message to display to users, you usually add a validator 

Looking at the validators available in Jira Cloud none of them will apply to your case. 

Screen Shot 2021-09-19 at 8.49.29 PM.png

You will need a plugin so that you can add a script that will warn the users that there is a child issue still open, it is the reason Parent issue can not be closed

If you have any questions please let me know.

Best,

Fadoua

Geethanjali S J
Contributor
September 20, 2021

We have script runner plugin may I know how we can do by scripting

Like Tinker Fadoua likes this
Tinker Fadoua
Community Champion
September 20, 2021

Perfect you have the best plugin for your request. Let me get you the Script

Geethanjali S J
Contributor
September 20, 2021

Please let me know the script this is for cloud 

Geethanjali S J
Contributor
September 21, 2021

Please let me know the script

Tinker Fadoua
Community Champion
September 21, 2021

Promise to send it tonight. I was very busy these last 2 days

Tinker Fadoua
Community Champion
September 21, 2021

@Geethanjali S J 

Please check the following, it will help you with your request:

https://confluence.atlassian.com/jirakb/preventing-issues-from-being-closed-while-their-sub-task-are-still-open-724928276.html

Let me know how it goes.

Best,

Fadoua

Geethanjali S J
Contributor
September 22, 2021

Actually we tried that but our requirement is not that 

We are not creating sub task

We are creating Epic and Sub service issue type only under MBI by using parent link(MBI). 


Tinker Fadoua
Community Champion
September 22, 2021

I am looking at the moment for a Jira Cloud repo created by an Adaptavist Engineer that has several scripts. May be few tweaks then it can work.

Suggest an answer

Log in or Sign up to answer