Forums

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

how to ask for the currentuser()

Diego Daniel Gil March 18, 2019

Good morning. 

I need to know how to make a query like the following:

....and currenuser() in membersOf("groupname")...

This is possible?

6 answers

1 vote
JP _AC Bielefeld Leader_
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 18, 2019

Diego,

currentuser() is a function like memberof(). You can only do selects on fields of an issue which can be compared against other field or functions. One solution could be to create a custom field containing all users related to that or containing groups related to that issue.

1 vote
JP _AC Bielefeld Leader_
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 18, 2019

Hi Diego,

you could try;

...AND assignee IN memberof("groupname")

to get all issues assigned to members of that group. If you like you can extend this with reporter, creator, etc with eg.

...AND (assignee IN memberof("groupname") OR reporter IN memberof("groupname"))

Does this help?

Best

JP  

0 votes
Diego Daniel Gil March 18, 2019

thank you

0 votes
Diego Daniel Gil March 18, 2019

what you mention is correct, but it is not what I need, not necessarily who is consulting has a role within the issue, for example, enter to consult someone who only has to control who is working.

EX:

project = TICKET AND issuetype = Ticket and Aplication in ("nameaplication") AND currentuser() in memberof("namegroup")

0 votes
Diego Daniel Gil March 18, 2019

Thanks for your reply!

I have created groups for different work teams, I have a board where I see certain incidents, I need to share the board with the members of the teams and that they visualize only what refers to the group they belong to.

ty

0 votes
Haran Kumar
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 18, 2019

Hi @Diego Daniel Gil 

Though i am not clear with your question , i give you some instances. 

project = "design" AND assignee = currentUser(). 

This is one way you can find current user as assigne in project design. Similarly

project = "Design" AND Repoter = currentUser() 

will fetch you the tickets reported by the current user in the project . 

Hope this matches your question or clarifies you . 

thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events