{
"fields": {
"assignee": { "name": "{{issue.parent.fields.Marketing Manager.key}}" }
}
}
Hey chaps,
Having trouble getting this working! help help help.
I've tried using a comment to debug my json.
Marketing Managerv1.01:
{{issue.parent.fields.Marketing Manager.displayName}}
Key:
{{issue.parent.fields.Marketing Manager.key}}
which returns:
Marketing Managerv1.01:
Bevan Miller [Administrator]
Key:
admin
****Update****
It looks to be a problem with the Assignee field setter because if I simply do;
and the comments are updating proving it's got there, however the assignee does not change
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No. Is that something you'd recommend? How do I implement that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're getting values printed with your debug code so that proves that the source values are there and correct. I'd look into the setter. Is assignee settable via the method you're trying? Try hard coding assignee value and see if it throws any errors.
Maybe use this instead: PUT /rest/api/2/issue/{issueIdOrKey}/assignee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dave, are you using a ScriptRunner post function or event listener here?
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.