Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JMWE Create issue post function to generate one each issue based on members in project role

Paul Alexander
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2022

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?

Advanced configuration and usage of the Create issue(s) post-function - JMWE for JIRA Cloud - Confluence (atlassian.net)

1 answer

1 accepted

0 votes
Answer accepted
Paul Alexander
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2022

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) 

 

Suggest an answer

Log in or Sign up to answer