In the article, we can see that it is asking for a username and password. Where to find a Jira username and password?
I need to hit the below API what could be the username / password here as I am using login with Google.
curl -D- -u {username}:{password} -X POST -H "X-Atlassian-Token: nocheck" -F "file=@{path/to/file}" http://{base-url}/rest/api/2/issue/{issue-key}/attachments
Welcome to the community!!
The api you shared is for server version. Please take a look at this Jira Cloud Rest Api Attachment doc.
You will use api token instead of user/pass. Manage API tokens for your Atlassian account
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.