Hello,
My cloning post-function doesn't clone the reporter. I need to get the source issue reporter and input it in the target issue.
So far I found how to input but not how to get source issue:
def response = get('').asObject(Map) assert response.status == 200 def username= response.body.name issueInput.fields.reporter = [name: username] as Map
All good I found out that this was working:
def reporter = issue.fields.reporter.name
issueInput.fields.reporter = [name: reporter]
And that I also missed adding the reporter field in the create issue screen..!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.