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.
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.
@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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest connecting with your Admin and having them check and see what is occurring.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.