Hello All,
I'm trying use automation to create issues in another project with the Jira API. I know there is native functionality for this but I wanted to use this a practice so this can maybe done with other Jira instances, or other cloud apps with APIs.
When I run the automation and an issue is created in the origin project, the logs indicate that the web request was successfully published (response: 200), but the issue isn't created in the destination project. I've looked at permissions, project types, but am unsure where to look now. Any advice?
PS - I removed the key, and other indicators. And used this post to guide me
Hello @Carlos Madera DISH
Welcome to the community.
The first thing to note is that your URL is wrong. The REST API endpoints are accessed thus:
https://<yourCo>.atlassian.net/rest/api/3/....
Second, when specifying the issue type to create you need to use the unique numeric ID for that issue type rather than the human readable name.
Third, your data doesn't specify in which project the issue is to be created. You need to include that information, and you need to specify the unique numeric ID of the project rather than the project key.
Fourth, when specifying an Assignee you need to use the person's Atlassian Account ID, not the email address they use the login.
Refer to this for a longer example of valid input data:
Example:
{
"update":{},
"fields": {
"summary": "Created with Automation",
"issuetype": {
"id": "10001"
},
"assignee": {
"id": "5b109f2e9729b51b54dc274d"
},
"project": {
"id": "10002"
}
}
}
And lastly, where you have entered "Basic" you need to also include the base64 encoding of your credentials as described in the article you referenced.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.