Hi all,
When mapping a behaviour to a single, multiple individually selected or all individually selected issue types the initialiser fails to work. If mapped with "All Issue Types" it works without fail.
I'm trying to map this code to a single issue type. Here is the example code I am using:
def
desc = getFieldById(
"description"
)
def
defaultValue =
""
"
Here the template...
""
".replaceAll(/ /,
''
)
if
(! underlyingIssue?.description) {
desc.setFormValue(defaultValue)
}
Would anyone have any ideas?
Hi @Hunter1428
After going through your description, I have some doubts to clarify.
Firstly, could you please specify what version of Jira and ScriptRunner you are currently using?
Next, could you please share a screenshot of your Behaviour configuration?
Also, could you please clarify whether you are trying the code above on an Initialiser Behaviour or a Server-Side Behaviour?
Thank you and Kind regards,
Ram
Hi @Ram Kumar Aravindakshan _Adaptavist_
Here are the details you requested.
Being performed on the Initialiser:
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Hunter1428
You appear to be using an unsupported version of Jira and a pretty outdated version of ScriptRunner.
The issue you are encountering seems to be related to the bug SRJIRA-2859, for which a workaround has already been provided.
It would be best if you were to upgrade your Jira instance to at least 8.20.0 to be able to use the latest version of ScriptRunner, which has new features and other bug fixes.
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.
It seems the workaround on our version still has some problems.
Best option we have is updating to a newer version of both products.
Thanks you for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.