infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Lambertus (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (INFRA-15541) Jira attachments are not visible via rest api
Date Fri, 24 Nov 2017 23:05:00 GMT

     [ https://issues.apache.org/jira/browse/INFRA-15541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Lambertus updated INFRA-15541:
------------------------------------
    Status: Waiting for user  (was: Waiting for Infra)

Have you googled your issue? I found a number of hits very quickly which describe the issue
and how to get attachment IDs from the API.


> Jira attachments are not visible via rest api
> ---------------------------------------------
>
>                 Key: INFRA-15541
>                 URL: https://issues.apache.org/jira/browse/INFRA-15541
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: JIRA
>            Reporter: Zoltan Haindrich
>
> I'm not able to retrieve the attachments informations using the jira/rest api.
> I've found a very similar issue INFRA-6008 ; and checked that the url mentioned in that
ticket works; and the returned content has the attachment section ; however the same thing
doesn't work for me on the tickets in the Hive project.
> sample:
> https://issues.apache.org/jira/rest/api/2/issue/HIVE-16827?expand=schema,editmeta
> groovy script to checks if the issue still exists:
> {code}
> #!/usr/bin/groovy
> @Grab('commons-codec:commons-codec:1.10')
> @Grab('org.apache.httpcomponents:httpclient:4.5.2')
> @Grab('net.rcarz:jira-client:0.5')
> def check(String k) {
>         def jira = new net.rcarz.jiraclient.JiraClient("https://issues.apache.org/jira");
>         printf("%s: %d\n", k,jira.getIssue(k).getAttachments().size())
> }
> check("SLING-2720")
> check("HIVE-16827")
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message