Forums

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

Duplicate Issue Creation

Shraddha Jaiswal December 16, 2022

I am using JIRA Rest API to create issues for Projects under ZOHO CRM.

Below is my code:

auth_token = 'email@example.com:<api_token>'
auth_header = zoho.encryption.base64Encode(auth_token);
jira_decription = "THIS IS THE TEST ISSUE";
issuename = "***TEST CRM ISSUE***";
headers = Map();
headers.put("Content-Type","application/json");
headers.put("Authorization","Basic " + auth_header);
json_object = {"fields":{"project":{"key":"IM"},"summary":issuename,"description":jira_decription,"issuetype":{"name":"Client Implementation"},"reporter":{"name":"Gloria Laureano"}}};
info "json_object:" + json_object;
jiradata = invokeurl
[
url :"https://b2bsoft.atlassian.net/rest/api/2/issue"
type :POST
parameters:json_object.toString()
headers:headers
];

While Checking on JIRA, it created a duplicate issue with two different reporters. One is the user from which I have generated the API Token and the other user is the one who created JIRA Issue from ZOHO  CRM ACCOUNT.

jIRA_ISSUE.png

I only want to create an issue with the user who is a ZOHO CRM user. So, here reporter "Gloria Laureano" issue need to be created only.

 

Please help me why the issues are creating duplicate.

 

1 answer

0 votes
Brant Schroeder
Community Champion
December 18, 2022

@Shraddha Jaiswal Do you already have the Zoho Jira integration setup on your Zoho account.  That looks like it is what is creating the first issue https://help.zoho.com/portal/en/kb/desk/for-administrators/integrations-and-add-ons/articles/configuring-zoho-desk-for-jira-integration 

Shraddha Jaiswal December 18, 2022

Hello @Brant Schroeder 

Thanks for your reply.

Yes, Jira is integrated with ZOHO DESK. I have an account for Jira but I did not have admin access to Jira.

Brant Schroeder
Community Champion
December 23, 2022

I would suggest connecting with your Admin and having them check and see what is occurring.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events