Cannot import JIRA REST API wadl into Postman - postman
I unsuccessfully try to import the JIRA API information from the following URI in wadl-format into Postman.
https://docs.atlassian.com/jira/REST/cloud/jira-rest-plugin.wadl
No matter if I try directly via URI, download and use the file or copy/paste the raw text, Postman complains about the format.
Any idea what is going wrong?
Greetings,
Thomas
Today, I stumbled over the exact same issue as you :-)
I could finally import the wadl into soapui by just removing a couple of lines from the wadl file.
diff jira-rest-plugin*
861,868c861
< path="api/2/priority"><ns2:method id="getPriorities"
< name="GET"><ns2:doc><![CDATA[Returns a list of all issue priorities.]]></ns2:doc><ns2:response
< status="200"><ns2:doc><![CDATA[a list of Jira Priorities]]></ns2:doc><ns2:representation
< element="list of priorities"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>[{"self":"http://www.example.com/jira/rest/api/2/priority/3","statusColor":"#009900","description":"Major loss of function.","iconUrl":"http://www.example.com/jira/images/icons/priorities/major.png","name":"Major"},{"self":"http://www.example.com/jira/rest/api/2/priority/5","statusColor":"#cfcfcf","description":"Very little impact.","iconUrl":"http://www.example.com/jira/images/icons/priorities/trivial.png","name":"Trivial"}]</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returned if the priorities exists and the user has permission to view it. Contains a full representation of
< the priority in JSON format.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/list-of-priority#","title":"List of Priority","type":"array","items":{"title":"Priority","type":"object","properties":{"self":{"type":"string"},"statusColor":{"type":"string"},"description":{"type":"string"},"iconUrl":{"type":"string"},"name":{"type":"string"},"id":{"type":"string"}},"additionalProperties":false}}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response></ns2:method><ns2:resource
---
> path="api/2/priority"><ns2:resource
939,944c932
< status="200"><ns2:doc><![CDATA[an issue counts bean]]></ns2:doc><ns2:representation
< element="issue Count Bean"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>{"self":"http://www.example.com/jira/rest/api/2/component/10000","issueCount":23}</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returned if the component exists and the currently authenticated user has permission to view it. Contains
< counts of issues related to this component.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/component-issue-counts#","title":"Component Issue Counts","type":"object","properties":{"self":{"type":"string","format":"uri"},"issueCount":{"type":"integer"}},"additionalProperties":false,"required":["issueCount"]}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[an issue counts bean]]></ns2:doc></ns2:response><ns2:response
1131,1136c1119
< status="200"><ns2:doc><![CDATA[an issue counts bean]]></ns2:doc><ns2:representation
< element="issue Count Bean"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>{"self":"http://www.example.com/jira/rest/api/2/version/10000","issuesFixedCount":23,"issuesAffectedCount":101,"issueCountWithCustomFieldsShowingVersion":54,"customFieldUsage":[{"fieldName":"Field1","customFieldId":10000,"issueCountWithVersionInCustomField":2},{"fieldName":"Field2","customFieldId":10010,"issueCountWithVersionInCustomField":3}]}</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returned if the version exists and the currently authenticated user has permission to view it. Contains
< counts of issues fixed in and affecting this version, custom fields connected to this version.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/version-issue-counts#","title":"Version Issue Counts","type":"object","properties":{"self":{"type":"string","format":"uri"},"issuesFixedCount":{"type":"integer"},"issuesAffectedCount":{"type":"integer"},"issueCountWithCustomFieldsShowingVersion":{"type":"integer"},"customFieldUsage":{"type":"array","items":{"title":"Version Usage In Custom Fields","type":"object","properties":{"fieldName":{"type":"string"},"customFieldId":{"type":"integer"},"issueCountWithVersionInCustomField":{"type":"integer"}},"additionalProperties":false,"required":["customFieldId","issueCountWithVersionInCustomField"]}}},"additionalProperties":false,"required":["issuesFixedCount","issuesAffectedCount","issueCountWithCustomFieldsShowingVersion"]}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[an issue counts bean]]></ns2:doc></ns2:response><ns2:response
1684,1688c1667
< status="200"><ns2:doc><![CDATA[a response containing all fields as short Field Meta Beans]]></ns2:doc><ns2:representation
< element="List of field"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>[{"id":"description","name":"Description","custom":false,"orderable":true,"navigable":true,"searchable":true,"clauseNames":["description"],"schema":{"type":"string","system":"description"}},{"id":"summary","key":"summary","name":"Summary","custom":false,"orderable":true,"navigable":true,"searchable":true,"clauseNames":["summary"],"schema":{"type":"string","system":"summary"}}]</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Contains a full representation of all visible fields in JSON.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/list-of-field#","title":"List of Field","type":"array","items":{"title":"Field","type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"custom":{"type":"boolean"},"orderable":{"type":"boolean"},"navigable":{"type":"boolean"},"searchable":{"type":"boolean"},"clauseNames":{"type":"array","items":{"type":"string"}},"schema":{"title":"Json Type","type":"object","properties":{"type":{"type":"string"},"items":{"type":"string"},"system":{"type":"string"},"custom":{"type":"string"},"customId":{"type":"integer"}},"additionalProperties":false}},"additionalProperties":false}}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response></ns2:method></ns2:resource><ns2:resource
---
> status="200"><ns2:doc><![CDATA[a response containing all fields as short Field Meta Beans]]></ns2:doc></ns2:response></ns2:method></ns2:resource><ns2:resource
1759,1763c1738
< status="200"><ns2:doc><![CDATA[a response containing newly created tab]]></ns2:doc><ns2:representation
< element="Newly created tab"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>{"id":10000,"name":"Fields Tab"}</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Newly created tab in JSON.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/screenable-tab#","title":"Screenable Tab","type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"additionalProperties":false}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[a response containing newly created tab]]></ns2:doc></ns2:response><ns2:response
1775,1779c1750
< status="200"><ns2:doc><![CDATA[a response containing renamed tab]]></ns2:doc><ns2:representation
< element="Modified tab"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>{"id":10000,"name":"Fields Tab"}</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Modified tab in JSON.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/screenable-tab#","title":"Screenable Tab","type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"additionalProperties":false}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[a response containing renamed tab]]></ns2:doc></ns2:response><ns2:response
2169,2174c2140,2141
< status="200"><ns2:doc><![CDATA[A response]]></ns2:doc><ns2:representation
< element="raw attachment contents"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>{"entries":[{"entryIndex":0,"name":"Allegro from Duet in C Major.mp3","size":1430174,"mediaType":"audio/mpeg"},{"entryIndex":1,"name":"lrm.rtf","size":331,"mediaType":"text/rtf"}],"totalEntryCount":24}</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[JSON representation of the attachment expanded contents. Empty entry list means that attachment cannot
< be expanded. It's either empty, corrupt or not an archive at all.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/attachment-archive-impl#","title":"Attachment Archive Impl","type":"object","properties":{"entries":{"type":"array","items":{"title":"Attachment Archive Entry","type":"object","properties":{"abbreviatedName":{"type":"string"},"entryIndex":{"type":"integer"},"mediaType":{"type":"string"},"name":{"type":"string"},"size":{"type":"integer"}},"additionalProperties":false,"required":["entryIndex","size"]}},"totalEntryCount":{"type":"integer"}},"additionalProperties":false,"required":["totalEntryCount"]}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[A response]]></ns2:doc>
> </ns2:response><ns2:response
2187,2192c2154
< status="200"><ns2:doc><![CDATA[A response]]></ns2:doc><ns2:representation
< element="human readable attachment contents"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>{"id":7237823,"name":"images.zip","entries":[{"path":"MG00N067.JPG","index":0,"size":"119 kB","mediaType":"image/jpeg","label":"MG00N067.JPG"},{"path":"Allegro from Duet in C Major.mp3","index":1,"size":"1.36 MB","mediaType":"audio/mpeg","label":"Allegro from Duet in C Major.mp3"},{"path":"long/path/thanks/to/lots/of/subdirectories/inside/making/it/quite/hard/to/reach/the/leaf.txt","index":2,"size":"0.0 k","mediaType":"text/plain","label":"long/path/thanks/to/.../reach/the/leaf.txt"}],"totalEntryCount":39,"mediaType":"application/zip"}</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[JSON representation of the attachment expanded contents. Empty entry list means that attachment cannot
< be expanded. It's either empty, corrupt or not an archive at all.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/human-readable-archive#","title":"Human Readable Archive","type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"entries":{"type":"array","items":{"title":"Human Readable Archive Entry","type":"object","properties":{"path":{"type":"string"},"index":{"type":"integer"},"size":{"type":"string"},"mediaType":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false,"required":["index"]}},"totalEntryCount":{"type":"integer"},"mediaType":{"type":"string"}},"additionalProperties":false,"required":["id","totalEntryCount"]}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[A response]]></ns2:doc></ns2:response><ns2:response
2283,2287c2245
< status="200"><ns2:doc><![CDATA[a response containing {#link com.atlassian.jira.issue.fields.rest.json.beans.EntityPropertyBean}.]]></ns2:doc><ns2:representation
< element="dashboard item-property"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>{"key":"issue.support","value":{"hipchat.room.id":"support-123","support.time":"1m"}}</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returned if the dashboard item property was found.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/entity-property#","title":"Entity Property","type":"object","properties":{"key":{"type":"string"},"value":{}},"additionalProperties":false}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[a response containing {#link com.atlassian.jira.issue.fields.rest.json.beans.EntityPropertyBean}.]]></ns2:doc></ns2:response><ns2:response
2292,2297c2250
< status="200"><ns2:doc><![CDATA[a list of JIRA issue resolutions]]></ns2:doc><ns2:representation
< element="list of resolutions"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>[{"self":"http://www.example.com/jira/rest/api/2/resolution/1","description":"A fix for this issue is checked into the tree and tested.","iconUrl":"http://www.example.com/jira/images/icons/statuses/resolved.png","name":"Fixed"},{"self":"http://www.example.com/jira/rest/api/2/resolution/3","description":"This is what it is supposed to do.","name":"Works as designed"}]</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returned if the resolutions exists and the user has permission to view them. Contains a full representation of
< the resolution in JSON format.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/list-of-resolution#","title":"List of Resolution","type":"array","items":{"title":"Resolution","type":"object","properties":{"self":{"type":"string","format":"uri"},"description":{"type":"string"},"iconUrl":{"type":"string"},"name":{"type":"string"},"id":{"type":"string"}},"additionalProperties":false}}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response></ns2:method><ns2:resource
---
> status="200"><ns2:doc><![CDATA[a list of JIRA issue resolutions]]></ns2:doc></ns2:response></ns2:method><ns2:resource
2569,2573c2522
< status="200"><ns2:doc><![CDATA[A list of user objects that match the username provided]]></ns2:doc><ns2:representation
< element="List of users"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>[{"self":"http://www.example.com/jira/rest/api/2/user?username=fred","key":"fred","accountId":"99:27935d01-92a7-4687-8272-a9b8d3b2ae2e","name":"fred","avatarUrls":{"48x48":"http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred","24x24":"http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred","16x16":"http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred","32x32":"http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"},"displayName":"Fred F. User","active":false},{"self":"http://www.example.com/jira/rest/api/2/user?username=andrew","key":"andrew","accountId":"99:e2a16dd9-2ffb-4a4b-a9bd-bd1145a020ee","name":"andrew","avatarUrls":{"48x48":"http://www.example.com/jira/secure/useravatar?size=large&ownerId=andrew","24x24":"http://www.example.com/jira/secure/useravatar?size=small&ownerId=andrew","16x16":"http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=andrew","32x32":"http://www.example.com/jira/secure/useravatar?size=medium&ownerId=andrew"},"displayName":"Andrew Anderson","active":false}]</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returns a full representation of a JIRA user in JSON format.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/list-of-user#","title":"List of User","type":"array","items":{"title":"User","type":"object","properties":{"self":{"type":"string","format":"uri"},"key":{"type":"string"},"accountId":{"type":"string"},"name":{"type":"string"},"emailAddress":{"type":"string"},"avatarUrls":{"type":"object","patternProperties":{".+":{"type":"string","format":"uri"}},"additionalProperties":false},"displayName":{"type":"string"},"active":{"type":"boolean"},"timeZone":{"type":"string"},"locale":{"type":"string"},"groups":{"$ref":"#/definitions/simple-list-wrapper"},"applicationRoles":{"$ref":"#/definitions/simple-list-wrapper"},"expand":{"type":"string"}},"additionalProperties":false,"required":["active"]},"definitions":{"simple-list-wrapper":{"title":"Simple List Wrapper","type":"object","properties":{"size":{"type":"integer"},"max-results":{"type":"integer"},"items":{"type":"array","items":{"title":"Group","type":"object","properties":{"name":{"type":"string"},"self":{"type":"string","format":"uri"}},"additionalProperties":false}}},"additionalProperties":false,"required":["size"]}}}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[A list of user objects that match the username provided]]></ns2:doc></ns2:response><ns2:response
2591,2595c2540
< status="200"><ns2:doc><![CDATA[An object containing list of matched user objects, with html representing highlighting.]]></ns2:doc><ns2:representation
< element="List of users"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>{"users":[{"name":"fred","key":"fred","html":"fred#example.com","displayName":"Fred Grumble","avatarUrl":"http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred"}],"total":25,"header":"Showing 20 of 25 matching groups"}</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returns a full representation of a JIRA user in JSON format.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/user-picker-results#","title":"User Picker Results","type":"object","properties":{"users":{"type":"array","items":{"title":"User Picker User","type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"html":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"type":"string","format":"uri"}},"additionalProperties":false}},"total":{"type":"integer"},"header":{"type":"string"}},"additionalProperties":false}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[An object containing list of matched user objects, with html representing highlighting.]]></ns2:doc></ns2:response><ns2:response
2651,2655c2596
< status="200"><ns2:doc><![CDATA[a Response with the users matching the query]]></ns2:doc><ns2:representation
< element="List of users"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>[{"self":"http://www.example.com/jira/rest/api/2/user?username=fred","key":"fred","accountId":"99:27935d01-92a7-4687-8272-a9b8d3b2ae2e","name":"fred","avatarUrls":{"48x48":"http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred","24x24":"http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred","16x16":"http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred","32x32":"http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"},"displayName":"Fred F. User","active":false},{"self":"http://www.example.com/jira/rest/api/2/user?username=andrew","key":"andrew","accountId":"99:e2a16dd9-2ffb-4a4b-a9bd-bd1145a020ee","name":"andrew","avatarUrls":{"48x48":"http://www.example.com/jira/secure/useravatar?size=large&ownerId=andrew","24x24":"http://www.example.com/jira/secure/useravatar?size=small&ownerId=andrew","16x16":"http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=andrew","32x32":"http://www.example.com/jira/secure/useravatar?size=medium&ownerId=andrew"},"displayName":"Andrew Anderson","active":false}]</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returns a full representation of a JIRA user in JSON format.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/list-of-user#","title":"List of User","type":"array","items":{"title":"User","type":"object","properties":{"self":{"type":"string","format":"uri"},"key":{"type":"string"},"accountId":{"type":"string"},"name":{"type":"string"},"emailAddress":{"type":"string"},"avatarUrls":{"type":"object","patternProperties":{".+":{"type":"string","format":"uri"}},"additionalProperties":false},"displayName":{"type":"string"},"active":{"type":"boolean"},"timeZone":{"type":"string"},"locale":{"type":"string"},"groups":{"$ref":"#/definitions/simple-list-wrapper"},"applicationRoles":{"$ref":"#/definitions/simple-list-wrapper"},"expand":{"type":"string"}},"additionalProperties":false,"required":["active"]},"definitions":{"simple-list-wrapper":{"title":"Simple List Wrapper","type":"object","properties":{"size":{"type":"integer"},"max-results":{"type":"integer"},"items":{"type":"array","items":{"title":"Group","type":"object","properties":{"name":{"type":"string"},"self":{"type":"string","format":"uri"}},"additionalProperties":false}}},"additionalProperties":false,"required":["size"]}}}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[a Response with the users matching the query]]></ns2:doc></ns2:response><ns2:response
2683,2687c2624
< status="200"><ns2:doc><![CDATA[a Response with the users matching the query]]></ns2:doc><ns2:representation
< element="List of users"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>[{"self":"http://www.example.com/jira/rest/api/2/user?username=fred","key":"fred","accountId":"99:27935d01-92a7-4687-8272-a9b8d3b2ae2e","name":"fred","avatarUrls":{"48x48":"http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred","24x24":"http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred","16x16":"http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred","32x32":"http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"},"displayName":"Fred F. User","active":false},{"self":"http://www.example.com/jira/rest/api/2/user?username=andrew","key":"andrew","accountId":"99:e2a16dd9-2ffb-4a4b-a9bd-bd1145a020ee","name":"andrew","avatarUrls":{"48x48":"http://www.example.com/jira/secure/useravatar?size=large&ownerId=andrew","24x24":"http://www.example.com/jira/secure/useravatar?size=small&ownerId=andrew","16x16":"http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=andrew","32x32":"http://www.example.com/jira/secure/useravatar?size=medium&ownerId=andrew"},"displayName":"Andrew Anderson","active":false}]</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returns a full representation of a JIRA user in JSON format.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/list-of-user#","title":"List of User","type":"array","items":{"title":"User","type":"object","properties":{"self":{"type":"string","format":"uri"},"key":{"type":"string"},"accountId":{"type":"string"},"name":{"type":"string"},"emailAddress":{"type":"string"},"avatarUrls":{"type":"object","patternProperties":{".+":{"type":"string","format":"uri"}},"additionalProperties":false},"displayName":{"type":"string"},"active":{"type":"boolean"},"timeZone":{"type":"string"},"locale":{"type":"string"},"groups":{"$ref":"#/definitions/simple-list-wrapper"},"applicationRoles":{"$ref":"#/definitions/simple-list-wrapper"},"expand":{"type":"string"}},"additionalProperties":false,"required":["active"]},"definitions":{"simple-list-wrapper":{"title":"Simple List Wrapper","type":"object","properties":{"size":{"type":"integer"},"max-results":{"type":"integer"},"items":{"type":"array","items":{"title":"Group","type":"object","properties":{"name":{"type":"string"},"self":{"type":"string","format":"uri"}},"additionalProperties":false}}},"additionalProperties":false,"required":["size"]}}}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[a Response with the users matching the query]]></ns2:doc></ns2:response><ns2:response
3724,3728c3661
< status="200"><ns2:doc><![CDATA[a RemoteIssueLinkCreateOrUpdateResponse]]></ns2:doc><ns2:representation
< element="remote issue link"
< mediaType="application/json"><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Example</ns3:h6><ns3:pre><ns3:code>{"id":10000,"self":"http://www.example.com/jira/rest/api/issue/MKY-1/remotelink/10000"}</ns3:code></ns3:pre></ns3:p></ns2:doc><ns2:doc><![CDATA[Returns a link to the created/updated remote issue link.]]></ns2:doc><ns2:doc><ns3:p
< xmlns:ns3="http://www.w3.org/1999/xhtml"><ns3:h6>Schema</ns3:h6><ns3:pre><ns3:code>{"id":"https://docs.atlassian.com/jira/REST/schema/remote-issue-link-create-or-update-response#","title":"Remote Issue Link Create Or Update Response","type":"object","properties":{"id":{"type":"integer"},"self":{"type":"string"}},"additionalProperties":false}</ns3:code></ns3:pre></ns3:p></ns2:doc></ns2:representation></ns2:response><ns2:response
---
> status="200"><ns2:doc><![CDATA[a RemoteIssueLinkCreateOrUpdateResponse]]></ns2:doc></ns2:response><ns2:response
I hope this is of help...
Patrick
Related
opencart 3.0.2.0 remove model required restriction
How can i remove the "model required" from the model field in admin product page in opencart v 3.0.2.0, and make it an optional field like the rest of the fields in the data tab? model required screenshot
its not correct to not insert model no, still i show you. admin\controller\catalog\product.php go to line no 1193 - approximate find this code in protected function validateForm() { if ((utf8_strlen($this->request->post['model']) < 1) || (utf8_strlen($this->request->post['model']) > 64)) { $this->error['model'] = $this->language->get('error_model'); } after comment /*if ((utf8_strlen($this->request->post['model']) < 1) || (utf8_strlen($this->request->post['model']) > 64)) { $this->error['model'] = $this->language->get('error_model'); } */ you have to comment this code or you can remove it, but i think you need this code in future so do only comment this code don't remove it.
Google Apps Script / Regular expression to show only latest message in an email "train"
email train = entire contents of a single email including previous messages email thread = a Google Apps Script array of messages QUESTION: In Google Apps Script, how can I import only the latest email from within an email train? I have a simple Google Apps Script based on the GmailApp class. Eventually, this will import all emails TO and FROM a given address (using a search query) into a spreadsheet: var threads = GmailApp.search('from: test#gmail.com OR to: test#gmail.com'); Logger.log("Thread count: " + threads.length); for (var i = 0; i < threads.length; i++) { Logger.log("Subject:" + threads[i].getFirstMessageSubject()); Logger.log("ID:" + threads[i].getId()); var messages = threads[i].getMessages(); for (var j = 0; j < messages.length; j++) { Logger.log(messages[j].getPlainBody()); } } The problem with email in general is that when someone replies to an email, it includes the original text. After 5 or 6 replies, each individual message gets very long, and when importing all messages within a Gmail thread as above, there's a tonne of duplication. The gmail.com web interface gets around this problem with the use of the ellipsis button: How do I replicate this black magic? I understand any given solution will be non-perfect. My first thought is to use some kind of regular expression, but I don't know where to start.
Indeed, a regular expression can offer a non-perfect solution to this problem. For U.S. standard of time and date, the following matches the Gmail datetime string that precedes a quoted message: var prev = /On (?:Sun|Mon|Tue|Wed|Thu|Fri|Sat), (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d{1,2}, \d{4} at \d{1,2}:\d{2} [AP]M,/; Then in the loop, one can truncate each message starting at such datetime. for (var j = 0; j < messages.length; j++) { var text = messages[j].getPlainBody(); var match = text.match(prev); if (match) { text = text.slice(0, match.index); } Logger.log(text); } This will fail if some participants use different locale settings for Gmail. Of course one can try to adjust this, e.g., by making day-of-week and [AP]M optional.
Axis 1.4 Webservices Datetime NumberFormatException: Invalid date/time
I´m using axis 1.4 to retrieve information from a (server) webservice. My WSDL have the following information: < xs:element name="ABC"> < xs:complexType> < xs:sequence> < xs:element name="DEF"> < xs:complexType> < xs:sequence> < xs:element name="Data" type="xs:dateTime"/> I have generated the stubs which origins the following code: #XmlElement(name = "Data", required = true) #XmlSchemaType(name = "dateTime" ) protected XMLGregorianCalendar data; When i make a call to this webservice i get the following error. My current request is: 2003-10-27T10:10:10.000Z Note that i already try using different formats for date (i allways get the same error). Supposedly, this is the corret format due the CalendarDeserializer [SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")]. Any help? Thanks :) P.S- Sorry about the text formatation (i was getting crazy with the message "Your post appears to contain code that is not properly formatted as code. ") The error is: java.lang.NumberFormatException: Invalid date/time org.apache.axis.encoding.ser.CalendarDeserializer.makeValue(CalendarDeserializer.java:64)
and 8 years later.... I was facing a similar issue with axis 1.3. I was able to consume the webservice by using this format "2020-01-09T17:00:00.000-03:00". A bit late but may help others
ksoap2 property info that has multiple parameter values?
i am using ksoap2 for my application in android. i am sending complex types, but i have a question: right now i am doing : UriList urlL = new UriList(); urlL.uriList= "#literal"; PropertyInfo pi = new PropertyInfo(); pi.setName("documents"); pi.setValue(urlL); pi.setType(UriList.class); sobj.addProperty(pi); this gives me a soap request that will look like: < documents> < uriList>#literal< /uriList> < /documents> what if i want to have several repetition of < uriList> ? ie: < documents> < uriList>#literal< /uriList> < uriList>#literal2< /uriList> < uriList>#literal3< /uriList> < /documents> how can i do that in ksoap2? thanks for the help :)
i fixed this by doing the paramter urlist -in the class that implements kvmserializable- as a list and it worked
I used the envelope.addMapping() function when I had to do the same thing. Pretty much you create an object that implements KvmSerializable and holds all the data you want in the Parameter. It will take care of adding the items for you. You can find more info about it on the following site: http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html
How can I get a SharePoint user profile via the "Friendly Name" using the SP web service?
I'm retrieving a list of names from a SharePoint list in my client program. The names are populated from a name picker in SharePoint. In the XML returned from the list query, the list looks like this: "#10;#Some Name;#12;#Another Name;#15;#Yet AnotherName" My program needs to get the account name (or the email address) of each user. I can use GetUserProfileByName("domain\\username"), but I don't have the account name. I can't do something like GetUserProfileByName("Some Name") because it has to be the account name. The number before each name is the index or the ID, but I can't use GetUserProfileByIndex(10) because I have to be managing my own data or have administrator credentials. So basically it is providing me with two important pieces of information, but I can't retrieve any further information using them.
Are you sure the number is an index, i think it might be the userid for the site collection. And it seems to be an odd sort of user list too, but anyway: string result = "#10;#Some Name;#12;#Another Name;#15;#Yet AnotherName"; string[] users = result.Substring(1).Split(new string[2] { ";", "#" }, StringSplitOptions.RemoveEmptyEntries); for (int j = 0; j < users.Length; j = j + 2) { using (ClientContext context = new ClientContext("http://yoursite")) { List list = context.Web.SiteUserInfoList; ListItem item = list.GetItemById(int.Parse(users[j])); context.Load(item, i => i.Id, i => i["Name"]); context.ExecuteQuery(); object username = item["Name"]; } }
I have a very messy solution working, but I'd love to hear of some ideas for a proper/elegant solution. Right now I'm using GetListItems on the UserInfo list and creating a dictionary of ows_ImnName and ows_Name entries, then parsing the string from the list query into the names and using them as lookup values. There has to be a better way.