com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client
Class Issue.Fields
java.lang.Object
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue.Fields
- Enclosing class:
- Issue
public static class Issue.Fields
- extends Object
Method Summary |
void |
addCustomField(String key,
Object value)
|
boolean |
equals(Object o)
|
|
get(String fieldID)
Returns the IssueField for the field with the given id, or null if it is not defined. |
|
get(String fieldID,
Class<T> cls)
Returns the IssueField for the field with the given id, or null if it is not defined. |
|
get(String fieldID,
org.codehaus.jackson.type.TypeReference<T> type)
Returns the IssueField for the field with the given id, or null if it is not defined. |
boolean |
has(String fieldID)
Returns a boolean indicating whether this Fields has a field with the given id. |
int |
hashCode()
|
Set<String> |
idSet()
|
int |
size()
|
String |
toString()
|
attachment
public List<Attachment> attachment
comment
public CommentsWithPaginationBean comment
description
public String description
environment
public String environment
summary
public String summary
votes
public Vote votes
security
public IssueSecurityType security
resolutiondate
public String resolutiondate
updated
public String updated
created
public String created
duedate
public String duedate
timetracking
public TimeTracking timetracking
labels
public List<String> labels
issuetype
public IssueType issuetype
fixVersions
public List<Version> fixVersions
versions
public List<Version> versions
components
public List<Component> components
progress
public Progress progress
aggregateprogress
public Progress aggregateprogress
priority
public Priority priority
project
public Project project
resolution
public Resolution resolution
assignee
public User assignee
reporter
public User reporter
status
public Status status
worklog
public WorklogWithPaginationBean worklog
workratio
public Long workratio
issuelinks
public List<IssueLink> issuelinks
watches
public Watches watches
subtasks
public List<IssueLink.IssueLinkRef> subtasks
parent
public IssueLink.IssueLinkRef parent
Issue.Fields
public Issue.Fields()
addCustomField
public void addCustomField(String key,
Object value)
get
public <T> T get(String fieldID)
throws IllegalArgumentException
- Returns the IssueField for the field with the given id, or null if it is not defined. Normally this will be
used for custom fields, since the system field values are available as fields of this class.
- Type Parameters:
T
- the field's value type- Parameters:
fieldID
- the field id
- Returns:
- an IssueField
- Throws:
IllegalArgumentException
- if calling #has with the field id would return false
get
public <T> T get(String fieldID,
Class<T> cls)
throws IllegalArgumentException
- Returns the IssueField for the field with the given id, or null if it is not defined. Normally this will be
used for custom fields, since the system field values are available as fields of this class.
- Type Parameters:
T
- the field's value type- Parameters:
fieldID
- the field idcls
- the Class to deserialise into
- Returns:
- an IssueField
- Throws:
IllegalArgumentException
- if calling #has with the field id would return false
get
public <T> T get(String fieldID,
org.codehaus.jackson.type.TypeReference<T> type)
throws IllegalArgumentException
- Returns the IssueField for the field with the given id, or null if it is not defined. Normally this will be
used for custom fields, since the system field values are available as fields of this class.
- Type Parameters:
T
- the field's value type- Parameters:
fieldID
- the field idtype
- the TypeReference of the type to deserialise into
- Returns:
- an IssueField
- Throws:
IllegalArgumentException
- if calling #has with the field id would return false
has
public boolean has(String fieldID)
- Returns a boolean indicating whether this Fields has a field with the given id.
- Parameters:
fieldID
- a String containing the field id
- Returns:
- a boolean indicating whether this Fields has a field with the given id.
idSet
public Set<String> idSet()
size
public int size()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2012 Atlassian. All Rights Reserved.