We are writing a Google Apps Script to attach to the Google form so that users can fill this out when they report an issue. Once the form is submitted the Apps Script will execute and create an issue in Jira. In order to do so I need the Server ID to make a post call to Jira's API. Where can I find the server id?
Here is the curl code to create an issue, you can test it from your terminal/console, hopefully it will give you an idea.
curl -i -X POST \
-H "Authorization:Basic API_TOKEN" \
-H "Content-Type:application/json" \
-d \
'{
"fields": {
"summary": "New issue from curl api test",
"issuetype": {
"id": "10001"
},
"project": {
"id": "10024"
},
"priority": {
"id": "2"
}
}
}' \
'https://YOURSITENAME.atlassian.net/rest/api/3/issue/'
You need api token (which you can generate from https://id.atlassian.com/), project id and issue id. You can find more details on creating issue using REST API here.
Ravi
You do not need the server id to make a "create issue" REST API call.
I suspect you mean something else though, could you explain what you mean by "server id"? (Server ID in Jira means "a string related to the server that identifies it to use admins and Atlassian for the purposes of licencing and support", and isn't generally even seen on Cloud systems, as that only applies to server!)
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.