Hi every one. Need help with SQL query that will return me names of all projects, in witch "SOME GRUP" is not member of "SOME PROJECT ROLE"
Somthing like:
SELECT * FROM projectname WHERE jira-group(or user) NOT IN project-role;
Right answer is:
select projects.pname from jira.project as projects
inner join jira.projectroleactor as pa on pa.PID = projects.ID
inner join jira.projectrole as pr on pr.ID = pa.PROJECTROLEID
where pa.ROLETYPEPARAMETER = "<here my group name>" and pa.PROJECTROLEID != 10800
1080 i got from jira.projectrole and its ID of my needed project role.
That would the SQL Query
select * from jira.project a where not exists
(SELECT pid FROM jira.projectroleactor b where
roletypeparameter = 'USER OR GROUP' and a.id = b.pid)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, so much. You answer is not absolutely applicable in my case, but it gave me right direction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it mandatory requirement to use SQL only? Could you use REST, for example?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.
Get Certified! ✍️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.