Forums

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

Is there any way to get rid of the autosave notification on switching fields

Dawn
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!
August 7, 2020

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:

Capture2.PNG

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)
}

 

1 answer

1 accepted

0 votes
Answer accepted
Dawn
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!
August 10, 2020

Solution if anyone else is looking for it: Moving the script from the initialiser to the field settings in behaviors fixed it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.13.8
TAGS
AUG Leaders

Atlassian Community Events