com.atlassian.jira.issue
Class IssueUtils
java.lang.Object
|
+--com.atlassian.jira.issue.IssueUtils
- public class IssueUtils
- extends java.lang.Object
Method Summary |
static org.ofbiz.core.entity.GenericValue |
createIssue(java.lang.String remoteUser,
java.util.Map fields)
|
static org.ofbiz.core.entity.GenericValue |
createIssue(com.opensymphony.module.user.User remoteUser,
java.util.Map fields)
This function creates an issue in Jira. |
static void |
filterIssues(java.util.List issues,
IssueFilter filter)
Filters a list of issues based on the type of IssueFilter passed in |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IssueUtils
public IssueUtils()
createIssue
public static org.ofbiz.core.entity.GenericValue createIssue(com.opensymphony.module.user.User remoteUser,
java.util.Map fields)
throws org.ofbiz.core.entity.GenericEntityException,
com.opensymphony.workflow.InvalidRoleException,
com.opensymphony.workflow.InvalidInputException,
CreateException
- This function creates an issue in Jira. Read the javadoc under the fields parameter to see what object need
to be passed to create an issue.
- Parameters:
remoteUser
- User that is creating this issuefields
- see below
Required Fields
projectId: A Long value representing the id of the project
issueType: The String id of an issueType
summary: A String describing the issue (max 255 chars)
Recomended Fields
assignee: A String representing the username of the assignee
reporter: A String representing the username of the reporter
priority: The String id of a priority
Optional Fields
description: A String description of the issue
environment: A String description of the environment the issue is in. e.g W2K
fixVersions: A List of Long values representing fixVersion ids
components: A List of Long values representing component ids
timeOriginalEstimate: A Long value representing the number of seconds this tast should take
timeEstimate: A Long value representing the number of seconds allocated for this issue
versions: = A List of Long value representing version ids
customFields: A Map containing a Long Key which is the custom field id and a String Value
which is the value for the custom field
created: The date which the issue was created. If not specified, defaults to System.currentTimeMillis()
updated: The date which the issue was updated. If not specified, defaults to System.currentTimeMillis()
- Returns:
- A generic value representing the issue created
- Throws:
org.ofbiz.core.entity.GenericEntityException
com.opensymphony.workflow.InvalidRoleException
com.opensymphony.workflow.InvalidInputException
CreateException
- See Also:
IssueCreateFunction
createIssue
public static org.ofbiz.core.entity.GenericValue createIssue(java.lang.String remoteUser,
java.util.Map fields)
throws org.ofbiz.core.entity.GenericEntityException,
com.opensymphony.workflow.InvalidRoleException,
com.opensymphony.workflow.InvalidInputException,
CreateException
org.ofbiz.core.entity.GenericEntityException
com.opensymphony.workflow.InvalidRoleException
com.opensymphony.workflow.InvalidInputException
CreateException
filterIssues
public static void filterIssues(java.util.List issues,
IssueFilter filter)
- Filters a list of issues based on the type of IssueFilter passed in
- Parameters:
issues
- The list of issues. Any issues to be filtered will be removed from this listfilter
- The implementation of IssueFilter to be used for filtering the issues
Copyright © 2002-2003 Atlassian. All Rights Reserved.