I have a "participants of an issue" custom field for several issue types. Each of these issue types may have subtasks. I would like to have a field in the subtasks that is in sync with the participants field from the parent issue. Its not enough to copy the values over on create as the content of the field will change as people comment.
Participants, assuming you're using the one from the Jira Toolkit, means "reporter, assignee and anyone who has commented". It only applies to the issue the field is displayed on, it doesn't look at sub-tasks.
I think you'd need one of the scripting or automation apps to populate and update another field with that.
I'd be fine with that - and I assume I could use ScriptRunner to copy the field from parent to subtask, with thanks for help you gave me previously. If I need to populate a multi-user picker field on the subtask I would also copy from multiple user fields from the parent. Might as well get everyone.
So then the bigger concern would be to keep that data in sync with the parent, so that if anyone is added/removed the change is synced to the child ticket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This probably needs your target field to be a multi-user picker (probably one that you never put on a create, edit or transition screen, so that it's effectively read-only to the users)
I would then write a scripted listener that picks up issue updated for the parent issues and sub-task creation and if it's one of the user fields you are interested in, iterates down over the subtasks to populate/update the field on them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nic - are you making a Udemy class on Scriptrunner?
Just sayin' - I'd buy it :)
Thank you so much for all your help!
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.