Does anyone know if there is a way to query the workspace prefixes through the API? I would like to kow what the prefix is for User Stories (normally US), Test Cases (TC) etc for doing searching through source code check ins to then associate the checkin with the appropriate item.
This information is available by querying the TypeDefinition type and including IDPrefix in your fetch.
Related
I am trying to use the OpenAlex API: https://docs.openalex.org/api
This API provides access to a catalog of scholarly papers, authors, institutions, etc...
It is easy enough to make a query for an institution's information such. Here is an example from the API docs:
https://api.openalex.org/I19820366
I am trying to figure out how to get a specific institution's ID.
In the docs, there is a statement that this ID number is Microsoft Academic Graph's institutional ID: https://www.microsoft.com/en-us/research/project/microsoft-academic-graph/
But I have been unable to figure out anything in Microsoft Academic Graph either.
How can I find the institutional ID for a specific institution?
I am a beginner, and I also just started to retrieve data from the OpenAlex API. For me, the easiest way was either to use the ROR id or the GRID id, which you can both look up for any institution either here: https://www.grid.ac/ or here: https://ror.org/
Then you use either ROR or GRID-ID as an identifier (https://docs.openalex.org/about-the-data/institution#ids) and that identifier as a filter, as specified in the API documentation.
Be aware, that except for the Institution-ID, that you want to find, all the other institutional IDs, like ROR or GRID, have to be put in your request as a full URL. Take the example of the Johns Hopkins University. It's not enough to put their ROR like this: "00za53h95", you have to put in the API request like that: "https://ror.org/00za53h95" (without the quotes) or else it won't work. In my example, a request could look like this:
https://api.openalex.org/institutions/https://ror.org/00za53h95
This will deliver a nice json file with all the info you need, including the institution's ID in the database. Save the information as a file by using a cURL GET request or just do it via your browser and get the result as a webpage, both works. If you do the latter, you should follow the suggestion of the OpenAlex team and install a browser plugin like JSONVue, that will make the experience of reading the result on your screen so much better.
Hope that helps.
You can use the OpenAlex API to search for the ID like this:
https://api.openalex.org/institutions?filter=display_name.search:University%20of%20Virginia
In addition to Heather's comment, I'd like to add that we can now go to https://explore.openalex.org/ and search for any entity. Start typing "Johns Hopkins University" and you'll get to this page: https://explore.openalex.org/institutions/I145311948 which has all the identifiers (including the openalex id I145311948) and additional information about this institution.
I'm new to wit.ai. I'm building a bot that does voice input for an order processing pipeline. In one field i need to input the client location. And this client_location entity has a keyword search strategy attached to it.
Now i want to add all cities, towns and villages to this entity as keywords. Because only one of this will be considered a valid value for client_location entity.
But there are a couple thousands of them, and adding them by hand, one by one, inside the wit.ai UI, doesn't make much sense.
I want to use a cli tool or a node package or something - to do it programmatically.
How can i do this? And also is ok to have so many keywords for one entity?
For now, the node.js library can't do training.
But you can still do it using HTTP REST api, by posting to /samples path.
POST/samples
The docs are here.
I am using this rally API to get the list of all the stories:
https://rally-n.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement?query=(Project.Name="My_Parent_Project")&order=OrderString
My_Parent_Project actually do not have any user stories, but its children projects (my_child_1 and my_child_2) has user stories.
Is there any specific field, which I can mention to get all the user stories including child projects.
I can see Rally UI has option to get the data from Child project. So I believe there must be an option to get this data using above API. (They use projectScopeUp=false&setScopedDown=true which doesn't seems to be working with
"hierarchicalrequirement" API.
You're really close.
It seems like you've already found the project scoping docs:
https://rally1.rallydev.com/slm/doc/webservice/projectscope.jsp
I think if you just swap your (Project.Name = "My_Parent_Project") query to instead use the project=/project/12345 query string parameter and include projectScopeDown=true you should be all set.
The Google Adwords API documentation is super difficult to navigate.
I know I am missing something. How can I pull a list of the campaigns under a certain account? Is there a report that includes it or API call? I can use a list of IDs or names but I can't find either.
Take a look at Google's googleads github repo.
https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201506/reporting/download_criteria_report.py
This is an example of downloading a criteria performance report.
Change reportType to CAMPAIGN_PERFORMANCE_REPORT.
In the selector object, change fields to the fields you want out of the list - https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report
If you want to add an id filter then you need to add a predicates object to the selector that looks like:
{'field': 'CampaignId', 'operator': 'IN', 'values': campaign_ids}
Not all fields in the campaign are available in the reporting section. In this case I would suggest to use the campaign service to download the campaigns. Keep in mind that this operation is slower than reporting.
Take a look at this example from the googleads repo - https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201506/basic_operations/get_campaigns.py
I am developing an iOS application and i have search functionality where in users can search for issues by selecting fields like project , version , assignee and i have all the rest api's for other functionalities except for assignee , i tried to find but i didn't get any Api. i was using the below Api - /rest/api/2/user/assignable/multiProjectSearch?username&projectKeys&startAt&maxResults
and it doesn't give me the exact results , can anybody point me in the right direction like how can i get assignee's for a particular project when i select a project in the search field.
I guess that by assignees of the project you mean assigness from the issues that belong to the project. You can use search method:
https://docs.atlassian.com/jira/REST/latest/#d2e4863
/rest/api/2/search?jql=project=PROJ_KEY&fields=assignee
Please take into account "startAt", "maxResults" parameters and returned "total" value that are used to support pagination. You may need to check the jira.search.view.default.max property in your JIRA: https://confluence.atlassian.com/display/CLOUDKB/Changing+maxResults+Parameter+for+JIRA+REST+API