Forums

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

Condition on Edit screen ScriptRunner cloud

Daniel Alonso
Contributor
July 30, 2020

How can I make mandatory a field on Edit Screen with ScriptRunner, the limitation is that I'm on Cloud.

I tried with Listener but looks like first make the event, then listen I cannot avoid the Issue to be updated before the condition passes.

1 answer

0 votes
Italo Qualisoni [e-Core]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2020

Hi @Daniel Alonso ,

I'm not aware of any app that allow you to make a field mandatory only in the Edit Screen. This is due cloud limitations that doesn't allow the apps to interfere in Edit Screen fields;

Also Listeners are piece of code that are triggered after an event (this can be a issue created, issue updated, new comment, issue deleted...). So basically you are running your code after these actions and you won't be able to do what you want with Listenters.

 

In your case, you could add this condition in your workflow transition as a Validator, so when the user transition the issue to the next status (you can have also a transition to the same status) you can validate for your field and make it mandatory.

Daniel Alonso
Contributor
July 30, 2020

Thanks Italo, that will work partially if the user transition the Issue, nice suggestion.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events