I am working with the JMWE app and need some advice.
For a project, Hats, on the create transition for a parent issue, Foo, I need to create n number of subtasks, of issueType Bar, as children of this newly added Foo issue, for each member in a project role, Clowns.
I cannot find a means to access the roleMembers object with the Create Issue post function to allow me to iterate through its membership of clowns (let's say it contains jdoe, bsmith, cjones for project Hats) in order to create a subtask assigned to each of these three individuals.
If I can find the way to access roleMembers, I would then need a means to iterate through the list. I see the means on this page to create multiple issues based on named users but I need to go after the project role for the project to determine who those members are. How can I achieve this?
Hmm, this was actually pretty easy with some more persistence ;).
In the create issue post function, I enabled the 'create multiple issues' option. I then supplied this template to the iterator.
{{'Clowns' | roleMembers | join(',')}}
And for the field, Assignee, I supplied this template to refer to the iterator.
{{it}}
My problem was that I was including this extra argument to try to get only those members that are active (not deactivated in my tenant), but that returns the user's names while the above syntax returns the user's account IDs which seems to be required to get this to work. I did see mention of this somewhere in the JMWE documentation.
roleMembers(true)
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.