Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×I'm using ScriptRunner to auto populate the description field in Jira Datacenter based on issue type, however the image shows the pop up that comes up whenever a different issue type is picked (for example Bug to Task). While it is useful overall, in this case the user would prefer to now have this show.
Example:
Here is a slightly modified version of the script I'm using:
def desc = getFieldById("description")
if (issueContext.issueType.name == "Bug") {
def descValue = """
This is a bug
""".replaceAll(/ /, '')
desc.setFormValue(descValue)
}
if (issueContext.issueType.name == "Task") {
def descValue = """
This is a task
""".replaceAll(/ /, '')
desc.setFormValue(descValue)
}
Solution if anyone else is looking for it: Moving the script from the initialiser to the field settings in behaviors fixed it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.