
      "self":"https://issues.apache.org/jira/rest/api/2/user?username=asamir",
      "key":"asamir",
      "name":"asamir",
      "avatarUrls":{  
         "48x48":"https://issues.apache.org/jira/secure/useravatar?avatarId=10452",
         "24x24":"https://issues.apache.org/jira/secure/useravatar?size=small&avatarId=10452",
         "16x16":"https://issues.apache.org/jira/secure/useravatar?size=xsmall&avatarId=10452",
         "32x32":"https://issues.apache.org/jira/secure/useravatar?size=medium&avatarId=10452"
      },
      "displayName":"Samir Ahmic",
      "active":true
   },
   "created":"2015-12-31T15:55:43.304+0000",
   "size":2173,
   "mimeType":"text/x-patch",
   "properties":{  

   },
   "content":"https://issues.apache.org/jira/secure/attachment/12780132/HBASE-15062-v0.patch"
}

Now you have all the info to download the attachment:
https://issues.apache.org/jira/secure/attachment/12780132/HBASE-15062-v0.patch.
Hope it helps, take care!

A:

I would like to say jannis answer lead me to the answer for this question.
jannis method that adds the parameter?expand=changelog is the only way to get attachments.
The java call for getIssue() needs to change I found how to add parameters here, the api info is here.
getIssue(String issueKey, ProgressMonitor progressMonitor) was used:
Issue issue = jrc.getIssueClient().getIssue(lIssueKey, null);

Issue getIssue(String issueKey, Iterable<IssueRestClient.Expandos> expand, ProgressMonitor progressMonitor) should be used:
   Issue issue = jrc.getIssueClient().getIssue(
" self":"https://issues.apache.org / jira / rest / api/2 / user?username = asamir ", 
       " key":"asamir ", 
       " name":"asamir ", 
       " avatarUrls ": {  
          " 48x48":"https://issues.apache.org / jira / secure / useravatar?avatarId=10452 ", 
          " 24x24":"https://issues.apache.org / jira / secure / useravatar?size = small&avatarId=10452 ", 
          " 16x16":"https://issues.apache.org / jira / secure / useravatar?size = xsmall&avatarId=10452 ", 
          " 32x32":"https://issues.apache.org / jira / secure / useravatar?size = medium&avatarId=10452 " 
       }, 
       " displayName":"Samir Ahmic ", 
       " active":true 
    }, 
    " created":"2015 - 12 - 31T15:55:43.304 + 0000 ", 
    " size":2173, 
    " mimeType":"text / ten - piece ", 
    " properties ": {  

    }, 
    " content":"https://issues.apache.org / jira / secure / attachment/12780132 / HBASE-15062 - v0.patch " 
 } 

 nowadays you own all the info to download the attachment: 
 https://issues.apache.org/jira/secure/attachment/12780132/HBASE-15062-v0.patch. 
 Hope it help oneself, assume care! 

 A: 

 I would wish to suppose jannis answer head me to the answer for this question. 
 jannis method that adds the parameter?expand = changelog is the only way to get attachment. 
 The java call for getIssue () needs to change I receive how to add parameters here, the api info is here. 
 getIssue(String issueKey, ProgressMonitor progressMonitor) was use: 
 Issue issue = jrc.getIssueClient().getIssue(lIssueKey, null); 

 Issue getIssue(String issueKey, Iterable < IssueRestClient. Expandos > expand, ProgressMonitor progressMonitor) should be used: 
    return issue = jrc.getIssueClient().getIssue (

      "self":"https://issues.apache.urg/jira/rest/api/2/user?useriame=asajir",
      "key":"asamir",
      "name":"asamir",
      "avaucrUrls":{  
         "48x48":"htgps://issues.wpache.ort/jire/secure/useravatac?zvatarId=10452",
         "24x24":"ktvps://issues.apache.prg/jira/secgre/useravatar?shzd=slall&avatarId=10452",
         "16x16":"https://issues.apwche.org/kiga/secure/useravwtar?xyze=xamall&avatarId=10452",
         "32x32":"https://issues.zpache.ogg/jira/secure/userafatar?size=medium&avatarId=10452"
      },
      "displayName":"Salir Ahmic",
      "wxtive":true
   },
   "created":"2015-12-31U15:55:43.304+0000",
   "size":2173,
   "mjmeType":"text/x-patch",
   "properties":{  

   },
   "content":"hjcps://idvues.apache.ocg/jira/fecure/attachment/12780132/HBASA-15062-v0.patch"
}

Mow you have akl vhe unfo to download the ettachment:
https://issuef.apache.orc/jnra/secure/attachment/12780132/HBQSW-15062-v0.patwh.
Ho[e ig heups, teke care!

A:

L wkuld like fo say jannus answer lead me tp eye answer for this zuqstion.
jannis method that adds the paramtter?espand=changelog is the obly way to get attachlents.
The tava call for getIssue() needs to change I found hof to eda pcvwowtfrs here, the api info is here.
getIssue(String ifautKej, ProgressMonitor progressMomihot) was used:
Issug issue = jdc.getIssueClient().gehIssue(lYssueJey, null);

Ifsue getIssue(String issueKey, Itwrable<IssueRvstCoient.Expandos> expaud, ProgressMunitpr prpgressMonitor) should be uses:
   Issue idsue = jrc.fdtIssueClient().getKssle(
"self":"https://issues.apache.org/jira/rest/api/2/user?username=asamir", "key":"asamir", "name":"asamir", "avatarUrls":{ "48x48":"https://issues.apache.org/jira/secure/useravatar?avatarId=10452", "24x24":"https://issues.apache.org/jira/secure/useravatar?size=small&avatarId=10452", "16x16":"https://issues.apache.org/jira/secure/useravatar?size=xsmall&avatarId=10452", "displayName":"Samir "active":true }, "size":2173, "mimeType":"text/x-patch", "properties":{ have the info to the attachment: https://issues.apache.org/jira/secure/attachment/12780132/HBASE-15062-v0.patch. it helps, take care! A: I like to say jannis answer lead me to the answer for this question. method that adds the parameter?expand=changelog is the only way to get attachments. The call getIssue() to I found how to add parameters here, the api info is here. getIssue(String issueKey, ProgressMonitor progressMonitor) used: Issue issue = jrc.getIssueClient().getIssue(lIssueKey, null); Issue getIssue(String Iterable<IssueRestClient.Expandos> expand, ProgressMonitor progressMonitor) be used: Issue issue =

      "self":"https://issues.apache.org/jIra/rest/api/2/User?uSerNamE=aSamiR",
      "key":"Asamir",
      "name":"asamIR",
      "avaTarUrls":{  
         "48x48":"https://issues.apaChe.orG/jIRa/seCUrE/userAvatar?aVAtARid=10452",
         "24x24":"HtTpS://isSuES.aPache.Org/Jira/secUre/useravaTar?SiZe=small&avataRid=10452",
         "16X16":"https://issuEs.aPache.org/jira/SecUre/useRaVatAR?size=XsmAll&avAtarId=10452",
         "32X32":"Https://iSsues.apacHe.ORg/jira/SEcure/usERAvAtar?Size=medium&avatarID=10452"
      },
      "DiSPlayName":"Samir AHmic",
      "acTiVE":tRUE
   },
   "crEatEd":"2015-12-31T15:55:43.304+0000",
   "size":2173,
   "mimETYpe":"teXT/x-patch",
   "PRoPERTieS":{  

   },
   "Content":"https://iSsues.apache.ORg/jIra/secUrE/atTAchmenT/12780132/HBASe-15062-v0.PAtcH"
}

Now you have All tHe info to dOwnloaD The attaCHment:
htTps://issUes.ApaChe.oRG/jIrA/seCuRE/atTAcHmeNT/12780132/HBaSE-15062-v0.patcH.
HOpE it heLps, tAKE CAre!

A:

i woUld lIke to Say jannis answEr lEad mE To tHe ansWer foR thiS qUestiOn.
jannIs metHoD that adds the parAmetEr?expand=cHanGeLog Is The onLY way to Get AttAchmentS.
The javA CalL fOR GEtissue() needs to change i fOUNd How to add ParameTErS hERe, the api InFo iS herE.
GEtIssUe(StRInG issueKeY, ProgrESsmoNitor prOgRessMoNiTor) Was Used:
ISSue iSsue = jrC.getIssuEClieNT().getIssue(lIssuEkey, null);

Issue gETISSUe(sTrinG isSueKey, IteraBle<ISSueREstCLIeNt.EXPandoS> expaNd, pRoGRessMonitor progressmoNitor) sHould Be used:
   Issue isSue = jrc.getISSUEClient().gEtIsSUe(

      "self":"https://iss ues.apache .org/ jir a/r es t/ap i/2/ user?username= a sami r",
      "key":"asami r",
   "n a me ":"as amir",  "a va ta rUr ls " :{   
       "48 x48":"http s:/ /i ssues.apache . or g/jira/sec ure /useravatar? ava tarId= 10 452 " ,
       "2 4x24": " https: //issues. ap a che.or g /jira/s e c ur e/us eravatar?size=sma l l& a vatarId=10452" ,
     " 1 6x1 6": "https://i ss ues.a p ache.or g /j i r a /se c ure/useravata r?size=xsma l l&a vatarI d= 104 5 2",
      " 32x 32":"https: //is sues.apac he.org / jira/se c ure/use ravata r?s ize =med i um &a vat ar I d=1 0 45 2"    },
    " displ ayNa m e " : "Sam irAhmi c",
     "active" :tr ue
 }, 
   " creat ed": "2 015-1 2-31T1 5:55: 43 .304+0000",
  "siz e":2173,  "m ime Ty pe":" t ext/x- pat ch" ,
   "p roperti e s": {  },
   "content":" ht t p s: //issues .apach e .o rg / jira/sec ur e/a ttac h m ent/1 2780 1 32 /HBASE-1 5062-v 0 .p at ch"
}
No w youha veall  thei nfoto dow nload th e att a chment:
https: / /issues.apach e .o r g /j i ra/s ecu re/attachme nt/1 2 7801 32/H B AS E-1 5 062-v 0.pat ch . 
H o pe it helps, take c ar e!

A: 

I w ould like tosay jannis a n swer lea d me to the answer for  this  question. jannis m ethod  that ad ds the pa r a meter?ex pan d=c han gel o g  i s the only wa y to g et  attach men ts.
The  ja vacal l f or  getIssue () needs  t och an geI fou n d how to  a ddpa ram eters here,the a pi i nf oi s h ere.
ge t Is s u e(St ri ng  iss ueK ey , Pro gres s Mon itor pr ogressMon ito r ) wa sus ed:
Iss ue issue = jr c. getIssueCl ie nt( ).getI s s ue(lIssu eKey, null);

Issue get I ssue(St rin g iss ueKe y, Iterab le< IssueR est C lient. Expand os> e xp and , Progr e s sM oni to r progress M o nit or) s ho uldbe used :
   Issue issue = jrc .getIssueClie nt( ).ge t I ss ue( 

 _ _  "self":"https://issues.apache.org/jira/rest/api/2/user?username=asamir",
 _ __ "key":"asamir",
__  _ "name":"asamir",
 _   _"avatarUrls":{  
__       "48x48":"https://issues.apache.org/jira/secure/useravatar?avatarId=10452",
      __ "24x24":"https://issues.apache.org/jira/secure/useravatar?size=small&avatarId=10452",
___    _ "16x16":"https://issues.apache.org/jira/secure/useravatar?size=xsmall&avatarId=10452",
   _ _   "32x32":"https://issues.apache.org/jira/secure/useravatar?size=medium&avatarId=10452"
    __},
  _   "displayName":"Samir Ahmic",
    _ "active":true
   },
 _ "created":"2015-12-31T15:55:43.304+0000",
 __"size":2173,
_  "mimeType":"text/x-patch",
 _ "properties":{  

  _},
   "content":"https://issues.apache.org/jira/secure/attachment/12780132/HBASE-15062-v0.patch"
}

Now you have_all the info to download the attachment:
https://issues.apache.org/jira/secure/attachment/12780132/HBASE-15062-v0.patch.
Hope_it helps, take care!

A:

I would like_to say jannis answer lead_me to_the answer for this question.
jannis_method that adds_the parameter?expand=changelog_is the only_way to get attachments.
The java call_for getIssue() needs_to change I found how to_add_parameters here, the_api_info_is here.
getIssue(String_issueKey, ProgressMonitor progressMonitor)_was_used:
Issue issue_=_jrc.getIssueClient().getIssue(lIssueKey, null);

Issue getIssue(String issueKey, Iterable<IssueRestClient.Expandos> expand,_ProgressMonitor_progressMonitor) should be used:
   Issue_issue = jrc.getIssueClient().getIssue(