I need to figure out the correct code to set Assignee as the Reporter (of source issue), within the additional issue actions code box of the Clones issues and Links scripted Post-Function.
Hi Duane,
You can use this code to set the Assignee as the Reporter within the Additional Issue Actions box:
issue.reporter = issue.assignee
I tried this and the issue was assigned: "Anonymous"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, I just did some testing and got "Anonymous" in my instance. The way I set mine up originally was that under "Fields to Copy" in the Post-Function, I selected "Assignee." This ensures that the Assignee field will be available in the newly created issue. However, this also means that the new issue is automatically assigned to the same person it was before (and they are made the reporter). Does this work for your implementation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, also, the issue that you transition actually has to be assigned to someone for this to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Fields to copy" doesn't appear to be an option for the post function Clone issues and Link.
What I am trying to accomplish is Reporter of Task A becomes Assignee of Clone A and ideally Cloner of Task A becomes Reporter of Clone A
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, I think this code should do what you need:
issue.assignee = sourceIssue.reporter
issue.reporter = currentUser
This will make the Original issue's reporter the Cloned issue's assignee, and it will make the current user (the cloner) the Cloned issue's reporter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Initial testing is showing positive results!!!
Thanks!
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.