Forums

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

Remove user/reporter from a group via automation in Jira Server

Harsh
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.
December 19, 2023

Hi All,

I would like to know if it is possible to remove a user/reporter to a group (ex. Group 1) when the issue reaches a status via Jira automation. I did my own research and I could not find promising solution, except REST API. Is there a different way, without REST API/script?

Can some one help me with this? Any suggestion also works.

Thank you.

1 answer

0 votes
Vishal
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.
December 19, 2023

Hi @Harsh 

No, I dont think you have any better option available than API or some custom script. Automation at this moment doesn't support user management.

Hope it helps.

Harsh
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.
December 19, 2023

Hi @Vishal 

Thanks, even I thought so, but just wanted to confirm. 

Follow up question, can this be done via script?
I want when the issue reaches status in progress, the reporter should be removed from a group, via script runner?

Thank you

Vishal
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.
December 19, 2023

Hi @Harsh 

Yes, it should be possible to achieve using scriptrunner, you can refer this  article which is doing exactly same.

Hope it works.

Harsh
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.
December 19, 2023

Hi @Vishal 

I already refered this article, but it removes the user if we explicitly specify them. 

But I want to remove the reporter,  for that we have to get the reporter, and then remove it from the group right? 

Which I'm unable to do so. I'm trying to use gerReporter() in custom script post function but unable to achieve. 

Hope you can help now.

Thank you

Harsh
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.
December 19, 2023

Hi @Vishal 

Found the solution.
For future reference link that helped me to understand the concept is - Solved: Remove Users from a custom Jira group (atlassian.com) 

Thank you for the suggestion.

Regards. 

Like Vishal likes this
Harsh
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.
December 21, 2023

Hi @Vishal 

Follow up question - can we assign/remove a role(via user and role) to user in project automatically?

In my knowledge no right?

Thank you

Vishal
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.
December 27, 2023

Hi @Harsh 

You may want to refer to this cloud api document which allows you to do so, however I am not sure if the same is possible in server. Also, even though the api is available in cloud, even that would be bit complex to automate considering getting correct project key, project role id etc.

But give a try & let me know if you manage to do so. Would be a great to learn the solution. :)

Hope it helps!

Suggest an answer

Log in or Sign up to answer