Forums

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

Scriptrunner: How to display Web panel only in Transition Screen

Cedacri
Contributor
July 22, 2024

I'm having trouble writing the aforementioned condition snippet. Can someone share their example?

1 answer

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
July 22, 2024

Hi @Cedacri

Please clarify: Why do you need to use a Web Panel for the Transition screen when it can be customized to display the fields you intend to use in it?

I am looking forward to your feedback.

Thank you and Kind regards,
Ram

Cedacri
Contributor
July 22, 2024

I need to add some kind of static warning for the user in the screen header/footer before he/she updates the status. Showing a web panel meets the requirements.

On a side note, do you know perhaps how it could be implemented with 

import com.opensymphony.workflow.InvalidInputException ? (without this being a validator)
Or alternatively, if there is a way to insert HTML in the transition screen
Like vasanth likes this
Cedacri
Contributor
July 23, 2024

do you have any applicable advice? @Ram Kumar Aravindakshan _Adaptavist_ 

Ram Kumar Aravindakshan _Adaptavist_
Community Champion
July 23, 2024

Hi @Cedacri

Web Panels cannot be used in the Transition screen.

Instead, you can use Behaviour to add an Error message if a user, for example, enters or selects an invalid value.

Let me know if this suits your requirement.

Thank you and Kind regards,

Ram

Cedacri
Contributor
July 23, 2024

@Ram Kumar Aravindakshan _Adaptavist_ As you can see bellow, I did manage to use it in the Transition screen:
Screenshot 2024-07-23 132745.png

which is where the Info banner was placed, this solution is wonky at best since it is in the middle of the comment field and cannot be changed to another location.

 

Instead, you can use Behaviour to add an Error message if a user, for example, enters or selects an invalid value

As said initially, I need a static warning that always will be present in the transition screen, no matter the correctness of the user input - hence my web panel solution.

I do wonder if there is a better way to do it.

Suggest an answer

Log in or Sign up to answer