Sorry for another Scriptrunner question - I promise I have been trying to find a solution in the documentaiton.
When creating a sub-task via scripted post-function, I need to set the Assignee value of the sub-task by copying a value from a custom user picker field. I assume this is not an unusual sort of thing, but I can't find a good example to copy from.
It's not unusual at all, we often nominate people as responsible and want to cascade that down to sub-tasks of the issues.
https://library.adaptavist.com/entity/copy-field-value-from-parent-issue-to-sub-task-upon-creation should be easily modified to do what you want. (Please yell if you get stuck on re-arranging it)
No problem. It's worth a look through the rest of the library scripts - there's some good stuff in there, even a couple of my scripts have made it in.
And we're trying to add more. I think Silviya added a "contribute your own script" function a few weeks ago, so if you got something to work well and feel like sharing...
Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events