I am trying to edit a custom filed. but i can not do anything. it gives an error. i am using script runner for behaviours.
i have no problem editing other custom fields and even assigning aliases to them. but this field (cascading select) does not want to cooperate. i just need to set it to visible and invisible. please help.
Argument of type '"customfield_10687"' is not assignable to parameter of type '"customfield_10689" | "customfield_10630" | "customfield_10510" | "customfield_10621" | "customfield_10500" | "customfield_10622" | "customfield_10624" | "customfield_10625" | ... 299 more ... | "priority"'.(2345)
Hello @Ramez Kaupak
This is a bit of a guess based on my experience as a code developer, though I have not worked much with Java.
My guess is that the problem is you have not assigned the field object for customfield_10687 to a variable before trying to change its setVisible property.
See how you have declarations at (1) for the field objects for other custom fields? I believe you need to do the same for customfield_10687. Then at (3) you need to use setVisible the same way you do at (2), using the appropriate variable that you created for it in the declarations at (1).
thank you for your answer.
I tried that but it creates the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in this case i used a different custom field. but they both behave the same way. not sure why.
one is a cascading answer field and the other is a numerical entry. both give the same error.
textual or single select fields work no problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramez,
Was there a fix for this issue?
Thanks,
Pavithra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspill @Ramez Kaupak @Simh Simh ,
Me too I am waiting for the solution to this problem.
I noticed that this error only comes from numeric fields.
Thanks,
Reda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.