com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client
Class Issue.Fields

java.lang.Object
  extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue.Fields
Enclosing class:
Issue

public static class Issue.Fields
extends Object


Field Summary
 Progress aggregateprogress
           
 User assignee
           
 List<Attachment> attachment
           
 CommentsWithPaginationBean comment
           
 List<Component> components
           
 String created
           
 String description
           
 String duedate
           
 String environment
           
 List<Version> fixVersions
           
 List<IssueLink> issuelinks
           
 IssueType issuetype
           
 List<String> labels
           
 IssueLink.IssueLinkRef parent
           
 Priority priority
           
 Progress progress
           
 Project project
           
 User reporter
           
 Resolution resolution
           
 String resolutiondate
           
 IssueSecurityType security
           
 Status status
           
 List<IssueLink.IssueLinkRef> subtasks
           
 String summary
           
 TimeTracking timetracking
           
 String updated
           
 List<Version> versions
           
 Vote votes
           
 Watches watches
           
 WorklogWithPaginationBean worklog
           
 Long workratio
           
 
Constructor Summary
Issue.Fields()
           
 
Method Summary
 void addCustomField(String key, Object value)
           
 boolean equals(Object o)
           
<T> T
get(String fieldID)
          Returns the IssueField for the field with the given id, or null if it is not defined.
<T> T
get(String fieldID, Class<T> cls)
          Returns the IssueField for the field with the given id, or null if it is not defined.
<T> T
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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Issue.Fields

public Issue.Fields()
Method Detail

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 id
cls - 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 id
type - 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.