Hello. Trying to get component lead in automation using a 'send web request' action but getting a 404 response with this message:
"The component with id 10002 does not exist"
Have tried to follow this post: Automation for Jira - Send web request using Jira ... - Atlassian Community
As per above post I've created an API key and encoded it as base64.
I've also had a look at the rest api docs for project components here: The Jira Cloud platform REST API (atlassian.com)
https://my-org.atlassian.net/rest/api/3/component/{id}
I've confirmed the component id selected on the issue with this in an audit log action:
{{issue.components.first}}
And have even hard-coded the component id into the webhook url like this:
https://my-org.atlassian.net/rest/api/3/component/10066
Despite hard-coding the component id, the error message references id 10002. I'm thinking that 10002 is the project id. But the rest api doesn't reference how to pass the project id. Is it necessary?
Can someone help me understand what I'm doing wrong or point me in the right direction?
Thanks.
Ignore everything in my question above! I'm such a noob! Its working now that I created the API token in the right place! Just realised that I had been try to use an Admin API key created here:
https://admin.atlassian.com/o/my-organisation-id/admin-api
When I should have been use the API token created here instead:
https://id.atlassian.com/manage-profile/security/api-tokens
I'll try to follow instructions more carefully next time! Hopefully nobody else makes the same mistakes as me but its here just in case ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.