The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to find the server id

Charles Haberman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 15, 2020

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?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 15, 2020

Hi @Charles Haberman 

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

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 15, 2020

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!)

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events