How to get the list of all the issues in a project in JIRA using REST API? - jira-rest-api

I am trying to get the list of all the issues irrespective of their status in a JIRA project.
I am doing a GET requset to the following URL:
https://jira.org.com/rest/api/2/search?jql=project={projectID}&issuetype=all
But, this doesn't return all the issues in response.
Where am I going wrong? Is the URL format above wrong?

Related

Why is adBudgetPricing linkedin API returning status 404 with message 'Resource adBudgetPricing does not exist'?

I am new to using linkedin APIs and all I am trying to do is use this API to make a GET request
https://api.linkedin.com/v2/adBudgetPricing?account={AccountNumber}
however, it keeps returning status 404 with 'Resource adBudgetPricing does not exist'
What could I be doing wrong?
Linking official docs here--
https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ad-budget-pricing?tabs=http#find-pricing-insights-by-criteriav2
I was finally able to get this working for myself with the aid of one of LinkedIn's sales engineers. I was also able to replicate your issue while debugging when I left of the required q parameter. If you don't set q=criteriaV2, then you'll receive a 404.
Make sure that you're sending all of the required parameters in your request:

Which Rally API is used for creating defect now?

I tried all sample and getting error - It is no longer necessary to append ".js" to WSAPI resources. Please Help with example.
That is just a warning- it's not actually preventing anything from working. Can you give us some more info on how you're accessing the api? Are you writing an app? Are you using one of the REST toolkits? Are there other errors in your response?
That warning just means you can drop the .js from all of the ref urls. The proper defect creation endpoint in wsapi version 2 is this:
/slm/webservice/v2.0/defect/create

Jira V6.0+ creating a project over REST API

I've got a problem: I'm working on an external webinterface for my company and we use Atlassians JIRA as a project issue and tracking method. I am trying to connect our webinterface over the REST API. After a short research I found out, that Atlassian never implemented the possibility to create a new JIRA Project over their REST API. Well, that isn't that true, they've implemented it in the actual version (7.0) because they migrated their other two APIs to one REST API. Now comes my problem: We are currently unable to upgrade from version 6.4.4 to version 7.0.0. After a second search I found a workaround for this problem. You can find it here:
The real problem is that this workaround isn't working or I'm doing it wrong.
I've already tried it with a GET request and the given arguments as parameters and over the normal POST method with a JSON body in it.
What's my problem?
Here some more informations: When I try it over GET, I always receive the normal response for the URL (it returns a list with all available templates). When I try it over POST with a JSON body (this is by the way the normal method for the normal functions of the REST API) I get back a HTTP-Error 415 Unsupported media type.
it would be nice if someone could test this workaround with a 6.0+ version of JIRA
So after some months I got it by myself. You have to make a POST request with the following header fields:
Content-Type=application/x-www-form-urlencoded; charset=UTF-8
Authorization=Basic {set your credentials as a Base64-String: "user:password"}
X-Atlassian-Token=nocheck
Once done you can set your POST-Parameters to the following:
name=Name of the Project
key=Key of the Project
lead=Leader of the Project
keyEdited=true (don't change it!)
projectTemplateWebItemKey=com.atlassian.jira-legacy-project-templates:jira-blank-item (don't change it!)
projectTemplateModuleKey=com.atlassian.jira-legacy-project-templates:jira-blank-item (don't change it!)
Hope that this helps someone, Jira is just weird in some cases :/

Retrieve specific version of document using Alfresco REST API

I'm using Alfresco Community 5.0b, but when I try to get the list of versions, using
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/versions,
I simply get an HTTP 404 error. According to https://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Retrieve_all_versions_.28getAllVersions.29, this is the recommended way to get the list of versions.
the Content and MetaData queries both work fine when I try
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/content and
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/metadata. What am I missing?
Give a try to this,
/alfresco/service/api/version?nodeRef={noderef}

How to get a git tag message from the Github API

I'm trying to get tag messages from the Github API. It says here I'm supposed to use this URL:
https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac
But I get "Not found" there, even if I try my own repo:
https://api.github.com/repos/richbrat/testrepo/git/tags/6cec7db2ae2d0213644480ba58bcc4a277ae8a2b
I'm using the node-github package with an oauth token and it's working really well for the "repos" calls but "gitdata" doesn't seem to work. Checking the headers I get back gives me a hint though:
... "x-oauth-scopes":"user, public_repo, repo, gist","x-accepted-oauth-scopes":"repo" ...
Gitdata seems to be outside my scope. Is it possible to get it into my scope or is there another solution to get tag messages?