|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cert.cc.jira.JIRAHelpers
public final class JIRAHelpers
JIRAHelpers contains static help methods
© 2012 Carnegie Mellon University
| Constructor Summary | |
|---|---|
JIRAHelpers()
|
|
| Method Summary | |
|---|---|
static String |
dateDifference(long dateA,
long dateB,
long resolution)
|
static String |
datePrettyPrint(long difference,
long resolution)
|
static Timestamp |
getClosed(Issue issue,
JiraAuthenticationContext authenticationContext)
Method to return a TimeStamp for the last time the Issue was closed. |
static Long |
getTimeIgnoreWeekends(Long startTime,
Long endTime)
Method to determine the amount of time in millis between to times dates given in Millis. |
static HashSet<String> |
getUsers(List<String> users,
List<String> groupStrings)
Obtains all of the users in the Jira Instance. |
static String |
updateCustomFieldOnIssue(CustomField cf,
MutableIssue issue,
String value)
This will correctly set a single custom value field on a mutable issue that has not been persisted yet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JIRAHelpers()
| Method Detail |
|---|
public static HashSet<String> getUsers(List<String> users,
List<String> groupStrings)
users - - List String of users to include if they exist in the system.groupStrings - - List String of groups to check for membership to include users.
HashSet String OR'd Users hash.
public static Long getTimeIgnoreWeekends(Long startTime,
Long endTime)
startTime - - LongendTime - - Long
Long
public static Timestamp getClosed(Issue issue,
JiraAuthenticationContext authenticationContext)
TimeStamp for the last time the Issue was closed.
issue - - Issue to inspect.
TimeStamp representing the last time the issue was closed. Null if it has never been closed.
public static String dateDifference(long dateA,
long dateB,
long resolution)
dateA - dateB - resolution -
public static String datePrettyPrint(long difference,
long resolution)
difference - resolution -
public static String updateCustomFieldOnIssue(CustomField cf,
MutableIssue issue,
String value)
cf - - {@link CustomField)issue - - MutableIssuevalue - - String value to put into the custom field.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||