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

Add only the organization that customer is involve automatically

Adrián Plaza [DEISER]
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.
June 16, 2020

Add only the organization that customer is involved automatically

When a service desk agent creates a ticket, the organization/s are not automatically added.

I tried with this: 
https://scriptrunner.adaptavist.com/latest/jira/blog/GettingMoreOutOfJsd.html#_adding_organizations_when_a_service_desk_issue_gets_created

and this:

https://community.atlassian.com/t5/Jira-questions/auto-add-organization-on-creation-of-ticket/qaq-p/25440

 

But both solutions add to the Jira ticket all the organizations that exist on the Jira Service Desk Project, but I don't want this I only want to add the organizations that the customer is involved, is that possible?.

 

Best regards,

Adrián.

1 answer

0 votes
Katarzyna
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 16, 2020

Hi Adrian,

Maybe Actions for Jira Service Desk will be useful for you. It provides new actions in the Automation (sections IF and THEN) called "Reporter Email Contains" and "Add organisations". You can set them after Issue created trigger. Please write more details what exactly do you need if this solution won't solve your problem.

Cheers,

Kate

Adrián Plaza [DEISER]
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.
June 16, 2020

Hi Kate,


It's a good approach but my problem is the most part of the companies are from families and for this reason they use generic emails (google, yahoo...)


For this reason, I need to recover all the organizations that this customer has in order to add all of them to the request, I review Java API and don't have any method that gets you all the organizations that the customer has, but on the API REST I found: https://docs.atlassian.com/jira-servicedesk/REST/4.9.1/#servicedeskapi/organization-getOrganizations

In the documentation, you can read: "Returns a list of organizations in the Jira instance. If the user is not an agent, the resource returns a list of organizations the user is a member of."

This is exactly what I need but I don't know how to execute API REST calls with the customers without the password, or exist something similar on the API Java

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events