When issues are created in Jira Rest API with issue/bulk the response only gets the id, key and self (url of the issue). As it is a massive creation we need to get the summary also in this response.
We have tried ?expand parameter but it is not working as I think it is a POST call.
¿Has anybody obtained any different response when creating POST issues?
Thanks
As per the documentation, the bulk issue create endpoint does not support the expand parameter, so there is nothing to be gained by submitting that parameter in the request.
Also, as per the documentation, that endpoint returns a CreatedIssue object, which contains:
id. string The ID of the created issue or subtask.
key. string The key of the created issue or subtask.
self. string The URL of the created issue or subtask.
transition. NestedResponse The response code and messages related to any requested transition.
So, there is nowhere in the response to extract the value of the summary field from.
Related
My company uses a systemd service that makes rest api calls to the podio API in a python wrapper on a services server. The process takes in bugsnag bugs, checks that a podio bug item with that external ID already exists, and then creates a new podio bug if no associated podio bug exists and updates any existing item if one does exist. Recently, this check was behaving unpredicatably. It would encounter a request for a given bugsnag ID and for no discernable reason would fail to find a podio bug with a matching external ID on one call, and then successfully find one the next call. The specific API rest call is https://developers.podio.com/doc/items/filter-items-4496747, filtering by external ID.
We haven't been able to recreate the issue on local testing, and reverting the code running on our services server to before a major refactor (the issue started happening around the same time) didn't stop the issue from happening. Was there a change in how the filter request works recently? Even so, that wouldn't explain why we are getting different responses for the same call.
don't know if I'm handing you a Red Herring but, I had to rewrite my Podio.Net code because all the references to integer Podio ItemIds were acting erratically like you described. The issue was that Podio's Id numbering system exceeded the size of an Integer and I had to switch all the calls to Long ItemId values.
when i go to this link
https://api.opensea.io/api/v1/assets?asset_contract_address=0x892848074ddea461a15f337250da3ce55580ca85
It returns me some data i can use. But when i tried to fetch MY assets its not return any data from this link.
https://api.opensea.io/api/v1/assets?owner=0xA48Db0a225703b25ef95B863C1aa44929bBA7FDe
You can see my assets from this link
https://opensea.io/M1croNFT
How can i fetch my assets data with opensea api?
Most likely, your problem is that to use the api/v1/assets method. For this request you need to use the api key. This is written in the description of the method in the documentation.
GET api/v1/assets
Please Note: This API endpoint requires an API key to use. Please fill
out the API request form to obtain one. Request an API key
So, I think that if you get the key, you will be able to fulfill any request
Another option is to use queries in the test network - OPENSEA TESTNETS API. I tried to run a query there and got the correct response.
I am quite new to Postman and I am trying to solve the following problem:
I am using the CKAN api and have found a way to get list of active users and their id
http://demo.ckan.org/api/3/action/user_list.
I now want to find the last time each user was active using this call http://demo.ckan.org/api/3/action/user_activity_list?id=
These calls were found on ckan's api guide. https://docs.ckan.org/en/2.9/api/
Is there a way to update the id parameter with a loop of some sort, so that i dont have to call separate get requests for each id
Cheers.
http://demo.ckan.org/api/3/action/user_activity_list?id={{id}}
Use a variable as I'd , and then update the value from pre request script
I have been able so far to create a new civi Mailing object and populate it, but confusingly I can't see a parameter in that to specify the mail destination group.
For context, I am dealing with Civi using pure REST api from a remote server. I have a solution to getting a custom template onto the server; the new problem is setting a schedule and delivery group, and initiating the send. I am using the python-civicrm library from github as the intermediary on the client.
I presume send happens as a result of setting the schedule -- i.e. I don't need an API call to say 'send mailing'? Is setting 'sheduled date' == 'now' safe or should I set a date of 'now + 1min' or similar?
So that leaves setting the delivery group. We already have groups defined in the DB, and I want to specify the group by name (and preferably be able to verify in advance that a group name is a valid destination, perhaps by doing a group name -> id lookup).
I think there might be a parameter to Mailing create 'groups' which can have keys 'include' and 'exclude'; at least, that's what the web form seems to do. However it's not mentioned in the REST api implementation.
Can anyone offer pointers?
I think you will find all you need in the following link :
Example of api call that is using the group include/exclude : https://gist.github.com/xurizaemon/6775471
Discussion about implementing mailing as an api - http://forum.civicrm.org/index.php?topic=24075.0
Otherwise, if it doesn't work, i suggest that you :
help adding this api in the CiviCRM Core - you could have some help on this on irc #civicrm (and have a look at https://issues.civicrm.org/jira/browse/CRM-11023)
OR create an extension with the api you need. It will be automatically available for REST. If you haven't created an extension yet, i suggest you go to the page http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension. It's quite straightforward with civix installed.
The table you need to check in the database is civicrm_mailing_group
To confirm, the problem was that (a) I needed to use groups[include]=array(ids) as mentioned by samuelsov, but also (b) I needed to use the json={...} form of request through REST, because the HTTP params syntax doesn't support nested data.
I'm writing one of my first apps for consuming a web service in Objective C, it's a Lighthouse API client. I'm able to execute all the GETs and XML parsing correctly and quickly, but I'm having extreme trouble trying to create a new ticket via POST (http://lighthouseapp.com/api).
I'm using ASIHTTPRequest.
I tried including the parameters on the URL (i.e. POST /projects/#{project_id}/tickets.xml?title=boo).
I've tried putting the ticket XML in the request body.
<ticket><title>boo</title></ticket>
Nothing is working. (server always sends a response back saying it needs a title) I'm very new to web services - am I missing something obvious?
I had a quick look at the Lighthouse API and here's how you go about creating a new ticket.
Request URL is http://{yourCustomURL}.lighthouseapp.com/projects/{ProjectID}/tickets.xml where {ProjectID} is a 5 digit number - in my case 72945.
Method is POST
Content type should be set to application/xml
Body should be in the format below. All fields are optional so I only included the title
<ticket> <assigned-user-id type="integer"></assigned-user-id> <body></body> <milestone-id type="integer"></milestone-id> <state></state> <title>Testing new ticket creation</title></ticket>
(sorry about the formatting of the code above, SO doesn't seem to like XML formatted code somehow?
This worked for me with a new ticket created under projectID 72945 - response received was 201 Created
If you want to make sure your POST request is working before diving into ASIHTTPRequest, download a Firefox add-on called POSTER from here. This will allow you to send an authenticated post request with all the fields above. Once you get that working, it should be a piece of cake to get ASIHTTPRequest to do the same.