Retrieving form to create issue in JIRA Rest Java Client -


i trying create program display mandatory fields particular issue type project. far able display values projects , issues using jrjc. not able figure out how display default screen. face same issue ?

thanks

thats right - need call createmeta call project key, issue type key , expand fields -

curl -d- -u fred:fred -x -h "content-type: application/json" http://kelpie9:8081/rest/api/2/issue/createmeta?projectkeys=qa&issuetypenames=bug&expand=projects.issuetypes.fields 

this give list of fields , can check if field required or not.

the jrjc equivalent getcreatemetadata call

getcreateissuemetadataoptions  options = new getcreateissuemetadataoptionsbuilder()         .withexpandedissuetypesfields()          .withprojectkeys("cgim")         .build();          list mylist=(list) restclient.getissueclient().getcreateissuemetadata(options, pm); // getting issue creation metadata relatively project im searching         java.util.iterator<cimproject> it1=mylist.iterator();         while(it1.hasnext())         {                 cimproject c=it1.next();                 list issuet=(list) c.getissuetypes(); // getting list of issue types linked project                 java.util.iterator<cimissuetype> it2=issuet.iterator();                 while (it2.hasnext())                 {                     cimissuetype issuetype=it2.next();                     system.out.print(issuetype.getname());                     map<string, cimfieldinfo> fieldlist=issuetype.getfields(); // getting list of fields linked each issue type                     for(entry<string, cimfieldinfo> entry : fieldlist.entryset()) {                         string cle = entry.getkey();                         cimfieldinfo valeur = entry.getvalue();                         system.out.println(valeur.getname());                     }                 }           } 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -