Hello,
My goal is to find all issues where user has a project role using jql. For instance, what jql woud be for all issues where "John" has a project role "Developer"?
I tried memberOfRole() function of ScriptRunner plugin, but it doesn't work as I expected.
I am new to Jira, maybe I'm missing something obvious.
I seem to understand "John" could be in a different field than just "reporter" - but I think, then you would to define in which one. For example extended by an ... or assignee = john ... PLUS any other custom field he could be in. Does this make sense?
Jira needs to know where to look for John (I understand in the developer role but as far as I know there is no option to say: "same time look in all fields").
Regards,
Daniel
I can't really see the documentation for the memberOfRole function, but judging by it's parameters (Field, Role, Role[2], ..), to find issue where john is the reporter, you'd first use the usual query:
reporter = john
Then to filter further and check where the reporter is a developer in the project the issue belong to,
issueFunction in memberOfRole(reporter, "Developers")
Combining this then to:
repoter = john and issueFunction in memberOfRole(reporter, "Developers")
Roughly equals to "issues where john is reporter, and also a developer of the project".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, but it's not actually what I want.
"John" may not be a reporter in these issues
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.