Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to remove non-company users from jira tickets

Abike Looi-Somoye
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 7, 2024

Hi community - asking if anyone has found an automation solution that removes non-company users from jira tickets.

 

Problem Statement:

We have tickets auto created via an email (approx. 2,000 tickets per month) - third parties email our alias and it creates a ticket. If there are multiple email addresses in CC, they are added to the request participants including internal company email addresses, and the sender (third party) is in the reporter field and sometimes in the request participants field. 

Once the ticket is created, we want all third parties to be removed from the tickets (reporter and request participants fields) so that they do not receive internal communications or comments. Third parties can have different email domains so it needs to be a rule that is something on the lines of 'If email address does not contain @companyname.com remove from Reporter and Request Participants'.

 

 

What we have tried so far - agents populate relevant internal approvers to a custom field, automation overwrites the Request Participants and Reporter field with this approver.

Downside - some people who previously had access needed their access reinstated, resulting in manual work.

 

Has anyone managed to create an automation to remove non-company email addresses/users from Reporter and Request Participants fields?

1 answer

1 accepted

1 vote
Answer accepted
Tim Kopperud
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2024

Hi @Abike Looi-Somoye, welcome to Atlassian Community. If I understand your question correct you might try something like this.

image.png

 

The Then: Create variable step will need a smartv value as shown here:

image.png

This is the smart value code. 

{{#request participants}}{{#if(emailAddress.endsWith("companyname.com"))}}{{key}}{{/}}{{/}}

Simply copy/paste this code. You will only need to replace the text "mycompanyname.com" to your requirement.

The last step should be like this:

image.png

You might uncheck "Send notification" in this step,

 

TimK

Tim Kopperud
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2024

Hi @Abike Looi-Somoye, did you try implementing this, and where you able to solve this? 

TimK

Tim Kopperud
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 20, 2024

Hi @Abike Looi-Somoye, if my answer was valuable for you, please mark it as accepted for helping other users reading this. 

Thanks.

TimK

Abike Looi-Somoye
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 20, 2024

thank you!

 

Like Tim Kopperud likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events