Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Scriptrunner: set assignee of subtask based on custom user field in parent

Hi everyone,

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.

1 answer

1 accepted

1 vote
Answer accepted

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)

Thanks Nic!  This is exactly the page I was looking for! 

Since writing, the requirement changed and has become a bit more complex.  Before I make another post I'll see about finding a documented solution.  Thanks!

Like Nic Brough _Adaptavist_ likes this

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...

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

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 ...

723 views 7 24
Read article

Community Events

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

Events near you