Hi Everyone.
In a certain case, I throw a UserMessageUtil.
the UserMessageUtil appears only after refreshing the page., but we still want to use it.
i thought about injecting Javascript into the field's description. but it's fixversion field.
Then i thought about writing a script to refresh the window. it did not work.
any ideas ?
--- This is my code BTW.
def reloadPage (Issue issue) {
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.1')
def http = new HTTPBuilder( "URL/browse/${issue.key}" )
http.auth.basic 'user','pass'
def postBody = [reset:'on',submit:'Refresh Web Scripts']
http.post( body: postBody) { resp, JSON ->
log.warn("${resp.getClass()} , ${JSON}")
return resp
}
}
Thanks !