Hi,
I have recently upgraded to the latest version of script runner 3.1.3, previously 3.0.4. on JIRA v6.3.1#6329-sha1:7df76f1 (I'm guessing that's a bug in its self).
We use a the post function on the creation of a issue to - Update issue custom field - and set a custom field('Resolver Group') to 'Change Management'. this seem to have stopped working since we upgraded. meaning the ticket cannot be created unless we make the field visible on the screen, which we do not want to-do.
Any idea as to why this may have happened?
Any help would be appreciated
Thanks,
Dan
I'm afraid I cannot help here. That "Update Issue Custom Field Function" does not belong to ScriptRunner. I'll remove the SR label. Hope you don't mind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No worries, sorry about that. Do you reckon I would get the same results from using a script post function?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, you could do the same using ScriptRunner. something like this could do the job if the custom field type is Text: import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.MutableIssue import com.atlassian.jira.issue.fields.CustomField MutableIssue issue = issue def customFieldManager = ComponentAccessor.getCustomFieldManager() CustomField resolverGroup = customFieldManager.getCustomFieldObjectByName("Resolver Group") issue.setCustomFieldValue(resolverGroup, 'Change Management')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel, Could you please post the code of your post function? Thanks, Alejo
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.