Hi all,
how do I need to update my classes or constructors to be more precise in the Script Consoles autocompletion?
I'd like to see at least the correct parameter name (in the picture shown it isn't int0, but
Thanks in advance,
Hauke
Turns out that this didn't need to be implemented by oneself.
In - at least - Jira 9.6 with ScriptRunner 7.11.0 this has been implemented ❤️
Parameters name will now be shown as they are.
From the screenshot you shared, the ScriptRunner editor displays the correct parameters.
In the case you have provided, the ObjectType has only two types of constructors, i.e., an empty constructor and the constructor with the int type parameter.
Hence you can see the option 1/2, which stands for 1 of 2. So the first option displayed is the int type parameter, and the second is no parameter.
I hope this helps to answer your question. :-)
Thank you and Kind regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ram Kumar Aravindakshan _Adaptavist_
yeah there are two constructors in this class, so thats pretty ok for me.
But I'd like to have `int objectID` for instance instead of `int int0` in this little box (the actual parameter is called `objectID` and not `int0`).
This would give our users (and me :p) a better idea _what_ parameters are really needed.
For the default classes I also see a description text inside that small box; but I don't know how to achieve this kind of documentation (assuming that it isn't hard coded in ScriptRunner or the Editor itself).
Thank you,
Hauke
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.