Forums

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

Scriptrunner Field Validator - NO OPTIONS

Albert Manuel
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.
September 24, 2021

Hi there,

 

I'm trying to create a field validator during a workflow transition, and when i go to validators, i have the option "Field(s) required validator [ScriptRunner] " but when i try to add a field, is not appearing, not only that field, none of the fields i have are not appearing... is this a bug or what?

Scriptrunner-problem.png

 

I'm running the latest version of Scriptrunner, cuz i just updated it.

 

I need help, thanks

4 answers

0 votes
Tye Joe Wai
Contributor
August 10, 2022

Hi @Viktoria Boiko , have you tried the solution from my answer above? There needs to be a screen for the transition, and only the fields that show up in that screen will show up in the validator.

Viktoria Boiko August 10, 2022

Hello @Tye Joe Wai,
Yes, there are no options even with the added to the transition screen. I see that there is no such bug in the new version of Scriptrunner and we will update to the new version in 1-2 month with our Jira. But if there is a solution for this version:  6.38.0 that would be good.
 I am asking because I can't see this bug: https://productsupport.adaptavist.com/servicedesk/customer/portal/2/SRJSUP-22394 

If there is no solution except updating Scriptrunner then it is not a problem, but I would like to know if it exists.

Thanks in advance.

0 votes
Heimbrock_ Morgan K-CTR _FAA_ April 21, 2022

Is there any update on this?

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
May 2, 2022

Hi @Heimbrock_ Morgan K-CTR _FAA_ did you check the answer from @Tye Joe Wai ? You need to have the field available on the transition screen...

0 votes
Tye Joe Wai
Contributor
November 18, 2021

Hey there @Albert Manuel , just wanted to confirm, do you have any screens associated with the transition where you are trying to add the validator?

As per this documentation , it will only show fields that are associated with the screen shown during the transition, so this may be the reason why nothing is showing up when you try it.

0 votes
Martin Bayer [MoroSystems, s.r.o.]
Community Champion
September 24, 2021

Hi @Albert Manuel did you try to start writing in the field? It quite often uses autocomplete function, so you need to write something.

Albert Manuel
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.
September 24, 2021

Yes, still nothing happens...

kostik1981
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 3, 2021

Same problem for me

Delp_ Elijah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 16, 2021

same here

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
November 16, 2021

Can you share your exact ScriptRUnner / Jira version?

Like Delp_ Elijah likes this
Delp_ Elijah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 16, 2021

Jira: 

version 8.18.2#818002-sha1:53055e5

Scriptrunner:

version 6.33.0

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
November 17, 2021

Ok, I just tested it on Jira 8.18.0 and SR 6.39.0 and you are right, it does not work. I created bug to Adaptavist...

https://productsupport.adaptavist.com/servicedesk/customer/portal/2/SRJSUP-22394

Viktoria Boiko August 8, 2022

Is there any update to this bug? I face the same issue

Rajesh Ramankutty
Contributor
September 22, 2022

am also facing same issue on this

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
September 26, 2022

Hi @Rajesh Ramankutty there was the answer with the link to the documentation
https://docs.adaptavist.com/sr4js/latest/features/workflows/validators/built-in-validators/field-s-required-validator?_ga=2.67743318.698142823.1664182121-1791370841.1661253031

You need to have the field on the transition screen to be able to configure it as required.

Screen Shot 2022-09-26 at 10.50.53.png

Rajesh Ramankutty
Contributor
October 17, 2022

Am looking for the vaildation to be done in the Jira create issue so i kept the validation before the open status of the workflow

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
October 19, 2022

Hi @Rajesh Ramankutty is your field present on Create Issue screen?

Suggest an answer

Log in or Sign up to answer