/** * Reloads issue data from the JIRA server (issue includes all navigable * fields). * * @throws JiraException when the retrieval fails */ public void refresh() throws JiraException { JSONObject result = realGet(restclient, key, new HashMap<String, String>()); deserialise(result); }
/** * Reloads issue data from the JIRA server (issue includes all navigable * fields). * * @throws JiraException when the retrieval fails */ public void refresh() throws JiraException { JSONObject result = realGet(restclient, key, new HashMap<String, String>()); deserialise(result); }
/** * 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>())); }
/** * Reloads issue data from the JIRA server and specify which fields to * retrieve. * * @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> * * @throws JiraException when the retrieval fails */ public void refresh(final String includedFields) throws JiraException { Map<String, String> queryParams = new HashMap<String, String>(); queryParams.put("fields", includedFields); JSONObject result = realGet(restclient, key, queryParams); deserialise(result); }
/** * 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));
/** * Reloads issue data from the JIRA server and specify which fields to * retrieve. * * @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> * * @throws JiraException when the retrieval fails */ public void refresh(final String includedFields) throws JiraException { Map<String, String> queryParams = new HashMap<String, String>() { { put("fields", includedFields); } }; JSONObject result = realGet(restclient, key, queryParams); deserialise(result); }
/** * 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));