/** * Retrieves the given issue record. * * @param restclient REST client instance * @param key Issue key (PROJECT-123) * * @return an issue instance (issue includes all navigable fields) * * @throws JiraException when the retrieval fails */ public static Issue get(RestClient restclient, String key) throws JiraException { return new Issue(restclient, realGet(restclient, key, new HashMap<String, String>())); }
/** * Retrieves the given issue record. * * @param restclient REST client instance * @param key Issue key (PROJECT-123) * * @return an issue instance (issue includes all navigable fields) * * @throws JiraException when the retrieval fails */ public static Issue get(RestClient restclient, String key) throws JiraException { return new Issue(restclient, realGet(restclient, key, new HashMap<String, String>())); }
/** * Retrieves the given issue record. * * @param restclient REST client instance * * @param key Issue key (PROJECT-123) * * @param includedFields Specifies which issue fields will be included in * the result. * <br>Some examples how this parameter works: * <ul> * <li>*all - include all fields</li> * <li>*navigable - include just navigable fields</li> * <li>summary,comment - include just the summary and comments</li> * <li>*all,-comment - include all fields</li> * </ul> * * @return an issue instance * * @throws JiraException when the retrieval fails */ public static Issue get(RestClient restclient, String key, final String includedFields) throws JiraException { Map<String, String> queryParams = new HashMap<String, String>(); queryParams.put("fields", includedFields); return new Issue(restclient, realGet(restclient, key, queryParams)); }
queryParams.put("expand", expand); return new Issue(restclient, realGet(restclient, key, queryParams));
/** * Retrieves the given issue record. * * @param restclient REST client instance * * @param key Issue key (PROJECT-123) * * @param includedFields Specifies which issue fields will be included in * the result. * <br>Some examples how this parameter works: * <ul> * <li>*all - include all fields</li> * <li>*navigable - include just navigable fields</li> * <li>summary,comment - include just the summary and comments</li> * <li>*all,-comment - include all fields</li> * </ul> * * @return an issue instance * * @throws JiraException when the retrieval fails */ public static Issue get(RestClient restclient, String key, final String includedFields) throws JiraException { Map<String, String> queryParams = new HashMap<String, String>() { { put("fields", includedFields); } }; return new Issue(restclient, realGet(restclient, key, queryParams)); }
return new Issue(restclient, realGet(restclient, key, queryParams));
result = (T)new CustomFieldOption(restclient, (JSONObject)r); else if (type == Issue.class) result = (T)new Issue(restclient, (JSONObject)r); else if (type == IssueLink.class) result = (T)new IssueLink(restclient, (JSONObject)r);
result = (T)new CustomFieldOption(restclient, (JSONObject)r); else if (type == Issue.class) result = (T)new Issue(restclient, (JSONObject)r); else if (type == IssueLink.class) result = (T)new IssueLink(restclient, (JSONObject)r);