[Scriprunner] The myProjects() function doesn't work as expected

Ekaterina Danilova March 18, 2019

Hello, 

If I understand this function correctly, the project in myProjects() jql should show me all issues in the projects where the current user is Developer or Project Lead or have other roles. 

I have the following jql that should collect all issues from different projects (where I'm a developer, for example) to the single "backlog": 

project in myProjects() AND assignee is EMPTY AND status = Backlog ORDER BY priority DESC, created ASC  

 However, I have the following situation: 
- Admin #1 - see everything correct 
- Admin #2 - see not relevant issues (she is not a developer or project lead). 

I have some ideas what's the problem: we have the role is administrators and jira-administrators group was assigned as administrators. If so, why it doesn't work for Admin #1

- Developer - don't see any issues at all
- Admin #3 - don't see any issues at all 

Please help me where is I'm wrong? 

More details: 
- Filter shared
- No any groups in Developers (only jira-administrators in Administrators, but I have deleted them, nothing changes)
- The Scriprunner version is 5.5.0

1 answer

0 votes
Mark Markov
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.
March 19, 2019

Hello @Ekaterina Danilova 

As documentation says 
>Being a member means being in any role, except where that is by virtue of being in a group with a global permission.

What groups are you usings?

Ekaterina Danilova March 19, 2019

We don't use groups to define Developers, only users. roles.png

Ekaterina Danilova March 19, 2019

We don't use groups to define Developers, only users. 

Ekaterina Danilova March 19, 2019

We don't use any groups to define the Developers role.

Ekaterina Danilova March 19, 2019

roles.png

Ekaterina Danilova March 20, 2019

Sorry, some lags on the website =)

Suggest an answer

Log in or Sign up to answer