Hi,
In task workflow after Inprogress state we have Done state and transition is Finish. We have setup Finish screen in Finish transition. We have to set up a validator showing some fields are mandatory before moving issue to Done state. We have created the validator using Custom script validator Scriptrunner the error message is coming in Finish screen. But we want to show this validator message in issues view screen not in Finish screen.
Is there any way to show the error message in issue view screen ?
Hi @Sreedevi Kr ,
Welcome to Atlassian community!
As per my understanding, you have mentioned 3 transition.( In-progress to Done then Done to Finish ). you want to add a field mandatory in the In-progress to Done transiton but Its showing in the Finish transition screen while you are moving to Done to Finish.
If my understanding correct then you have to update the script in the In-progress to Done transiton But you can add the validator in task workflow from In-progress to Done instead of using the script its easy to add in the workflow.
Please find the document to add a validator in the workflow, In the task workflow update the In-progress to Done transtion and a Validator.
Please accept the answer If it helps you 😊.
Regards,
Sanjen Bariki
Hey,
I have one transition, Inprogress to Done, that transition is Finish.
I have added validator in finish transition only. but we have finish screen also configured in this transition. Becoz of this screen validator is coming in finish screen not in view screen. I want to show validator message in view screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sreedevi Kr ,
Thanks for the clarification.
I understood, you have configured one screen which name is Finish.
As per the transition works steps, it will first redirect to the screen which you have configured and you have mandatory a field which is not available in the finish screen when you are transition to Done its showing to complete the mandatory field So you have to add the mandatory field in the Finish screen to complete. It will not show in the view screen because you have added a specific screen only for this finish transition and the view screen and Transition screen are different.
Regards,
Sanjen
Please accept the answer If it helps you😊.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thankyou for helping @Sanjen Bariki , I tried different ways to show the validator not in finish screen. I think there is no way to show like that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sreedevi Kr if the transition has a screen, then any validator message will be displayed on it.
The transition screen only goes away when the transition is completed or if you cancel the action.
To make the message appear on the issue screen, you must remove the transition screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.