Forums

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

How to make a field value null/clear on the transition screen, leave it editbale, make it required.

Arunajyothi Samala February 12, 2024

I want to clear a field value on the transition screen , make it editable for the user to fill it and make it required.

When user is moving from "Ready to test" to "rework", I want to clear the "Assignee" field on the transition screen, make it editable for the user and required to fill a value.

We have ScriptRunner and PowerScripts pluggins

2 answers

0 votes
Kristian Walker _Adaptavist_
Community Champion
February 13, 2024

Hi Arunajyothi,

I can confirm that, unfortunately, you cannot achieve this requirement with the Behaviours feature provided by ScriptRunner for Jira Cloud as it does not yet support transition screens.

However, as a workaround, you can use the Workflow Validators feature that ScriptRunner for Jira Cloud provides to make the assignee field required on the transition screen.

Workflow validators use the Jira Expression framework provided by Atlassian, and I can confirm we have some examples here to show their syntax.

It is not possible to clear it first but you can check if it is changed to a different value and give a custom error message if it is not by adding a message in the in the Validation failed message box.

I hope this information helps.

Regards,

Kristian

0 votes
Uday Kiran Bhaviri
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.
February 12, 2024

Hi @Arunajyothi Samala 

You can use behaviours from ScriptRunner.

Try this

getFieldById("Assignee").setFormValue(null)

getFieldById("Assignee").setRequired(true)

Hope this will be helpful.

For more information on Behaviours

https://docs.adaptavist.com/sr4jc/latest/features/behaviours

Kristian Walker _Adaptavist_
Community Champion
February 13, 2024

Hi Uday,

Unfortunately, Behaviours currently does not yet support Transition Screens in Jira Cloud but support will be coming for these later this year.

Regards,

Kristian

Like Uday Kiran Bhaviri likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events