how to access REST API in our custom atlassian cloud

Thaniyarasu Kannusamy April 24, 2016

i am new to Atlassian,

this is OUR url https://zvssdev.atlassian.net

we want to create a Ticket through REST-API from a ruby script.

my manager doesn't know like what kind of Atlassian product he is using neither i am

1) what kind of Atlassian product we are using ? 

2) how to enable access to REST API from OUR atlassian cloud ?

3) what is the best way to access REST API in OUR atlassian cloud ?

 

Thanks in Advance. 

dvh638

2 answers

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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 Leaders.
April 25, 2016

If you want a simple solution use createIssue from JIRA Command Line Interface (CLI). You can embed the command call in your app.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 24, 2016

We don't know what product(s) you are using, but

1) Look at the bottom of the page for the application

2) You don't.  It's already enabled

3) Use whatever language you are most comfortable with to make REST calls into the application, as per docs.

If, for example, you're using JIRA, then start at https://docs.atlassian.com/jira/REST/latest/ (there's some links to nice examples and tutorials in the first couple of paragraphs)


Thaniyarasu Kannusamy April 25, 2016
Thanks Nic,
i have gone to url "admin/applications" to find the list of applications. here is that
1) JIRA Software
2) JIRA Service Desk (with JIRA addons Gliffy Diagrams for JIRA Cloud)
3) Confluence (with JIRA addons Gliffy Diagrams for confluence Cloud)

also i have gone through some ruby gems
https://github.com/sumoheavy/jira-ruby
https://github.com/atlassian/omniauth-jira
most of them asking consumer key & token. like these
client = JIRA::Client.new({:consumer_key => CONSUMER_KEY, :consumer_secret => CONSUMER_SECRET})

i don't know like how to create CONSUMER_KEY , CONSUMER_SECRET.
in JIRA API docs says we can use Basic HTTP Auth.
if yes then how can i do it with rails app ?.

my aim is just to create a JIRA ticket/issue from my Rails APP. thats all
Thanks
dvh638
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 25, 2016

Consumer keys imply the use of Oath - see https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-oauth-authentication

But if you drop back to basic authentication, that's the most simple way to do it (least secure too)

Suggest an answer

Log in or Sign up to answer