public class IssueNavigationImpl extends Object implements IssueNavigation
| Constructor and Description | 
|---|
IssueNavigationImpl(net.sourceforge.jwebunit.WebTester tester,
                   JIRAEnvironmentData environmentData)
Deprecated.   
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addComment(String issueKey,
          String comment)
Adds a comment on the given issue, making it visible to all the users who can see the issue. 
 | 
void | 
addComment(String issueKey,
          String comment,
          String roleLevel)
Adds a comment on the given issue visible only to members the given role. 
 | 
IssueNavigation | 
addWatchers(String issueKey,
           String... usernames)
Add watchers to an issue. 
 | 
void | 
assignIssue(String issueKey,
           String comment,
           String userFullName)
Assign this issue to a different user. 
 | 
void | 
assignIssue(String issueKey,
           String userFullName,
           String comment,
           String commentLevel)
Assign an issue to a user. 
 | 
AttachmentsBlock | 
attachments(String issueKey)
Returns a representation of the attachments block on the view issue page for a specific issue. 
 | 
AttachmentsBlock | 
attachments(String issueKey,
           AttachmentsBlock.ViewMode viewMode)
Returns a representation of the attachments block on the view issue page for a specific issue. 
 | 
void | 
closeIssue(String issueKey,
          String resolution,
          String comment)
Closes an issue with the given resolution. 
 | 
String | 
createIssue(String projectName,
           String issueType,
           String summary)
Creates a new issue for the given project and returns the created issue key
 
 Assumes that the schemes are such that summary is the only required field 
 | 
String | 
createIssue(String projectName,
           String issueType,
           String summary,
           Map<String,String[]> params)
Creates a new issue for the given project and returns the created issue key
  
 | 
String | 
createSubTask(String parentIssueKey,
             String subTaskType,
             String subTaskSummary,
             String subTaskDescription)
Creates a new sub task for the given parent issue and returns the created issue key
 
 Assumes that the schemes are such that summary is the only required field. 
 | 
String | 
createSubTask(String parentIssueKey,
             String subTaskType,
             String subTaskSummary,
             String subTaskDescription,
             String originalEstimate)
Creates a new sub task for the given parent issue and returns the created issue key
 
 Assumes that the schemes are such that summary is the only required field. 
 | 
void | 
createSubTaskStep1(String issueKey,
                  String task_type)  | 
void | 
deleteIssue(String issueKey)
Deletes the specific issue. 
 | 
IssueNavigation | 
editCustomLabels(int issueId,
                int customFieldId)
Edit custom labels of the issue. 
 | 
IssueNavigation | 
editLabels(int issueId)
Go to edit labels of the issue. 
 | 
String | 
getId(String issueKey)
Gets the id of an issue. 
 | 
void | 
goToCreateIssueForm(String projectName,
                   String issueType)
Goes to the create issue form. 
 | 
void | 
gotoEditIssue(long issueId)
Navigates straight to the Edit screen of a specific issue, bypassing the View screen. 
 | 
void | 
gotoEditIssue(String issueKey)
Navigates to the Edit screen of a specific issue. 
 | 
void | 
gotoIssue(String issueKey)
Navigates to the the issue provided 
 | 
void | 
gotoIssueChangeHistory(String issueKey)
Navigates to the change history tab of the issue provided 
 | 
void | 
gotoIssueComments(String issueKey)
Navigates to the comment tab of the issue provided 
 | 
void | 
gotoIssueWorkLog(String issueKey)
Navigates to the work log tab of the issue provided 
 | 
void | 
linkIssueWithComment(String currentIssueKey,
                    String link,
                    String destinationIssueKey,
                    String comment,
                    String commentLevel)
Links issues together and appends a comment. 
 | 
void | 
linkIssueWithComment(String currentIssueKey,
                    String link,
                    String destinationIssueKey,
                    String comment,
                    String commentLevel,
                    String expectedText)
Links issues together and appends a comment. 
 | 
void | 
logWork(String issueKey,
       String timeLogged)
Log work against an issue 
 | 
void | 
logWork(String issueKey,
       String timeLogged,
       String newEstimate)
Logs work on the issue with the given key. 
 | 
void | 
logWorkWithComment(String issueKey,
                  String timeLogged,
                  String comment)
Logs work on the issue with the given key. 
 | 
void | 
performIssueActionWithoutDetailsDialog(String issueKey,
                                      String actionName)
Performs given action on issue. 
 | 
void | 
reopenIssue(String issueKey)
Reopens a resolved issue. 
 | 
void | 
resolveIssue(String issueKey,
            String resolution,
            Map<String,String> fieldValues)
Resolves an issue with the given resolution and given values for other fields. 
 | 
void | 
resolveIssue(String issueKey,
            String resolution,
            String comment)
Resolves an issue with the given resolution. 
 | 
void | 
resolveIssue(String issueKey,
            String resolution,
            String comment,
            String originalEstimate,
            String remainingEstimate)
Resolves an issue with the given resolution. 
 | 
IssueNavigatorNavigation | 
returnToSearch()
As of JIRA 6.0, issue pager is rendered client side. 
 | 
void | 
selectIssueType(String issueType)
Sets issue type field to correct value for given issue type name 
 | 
void | 
selectIssueType(String issueType,
               String issueTypeFieldId)
Sets issue type (found by provided ID) field to correct value for give issue type name 
 | 
void | 
selectProject(String projectName)
Sets project field to correct value for given project name 
 | 
void | 
selectProject(String projectName,
             String projectFieldName)
Sets chosen project field value to ID of provided project 
 | 
void | 
setAffectsVersions(String issueKey,
                  String... affectsVersions)
Sets the given affects versions on the selected issue. 
 | 
void | 
setComponents(String issueKey,
             String... components)
Sets the given components on the selected issue. 
 | 
void | 
setDescription(String issueKey,
              String description)
Sets the description field on the given issue. 
 | 
void | 
setDueDate(String issueKey,
          String dateString)
Sets the due date for an issue to the date string passed in 
 | 
void | 
setEnvironment(String issueKey,
              String environment)
Sets the environment field on the given issue. 
 | 
void | 
setEstimates(String issueKey,
            String originalEstimate,
            String remainingEstimate)
Sets the original and remaining estimate on an issue and submits this change. 
 | 
void | 
setFixVersions(String issueKey,
              String... fixVersions)
Sets the given fix versions on the selected issue. 
 | 
void | 
setFreeTextCustomField(String issueKey,
                      String customFieldId,
                      String text)
Sets the description field on the given issue. 
 | 
void | 
setIssueMultiSelectField(String issueKey,
                        String selectName,
                        String... options)
Sets the multi-select field to the options 
 | 
void | 
setOriginalEstimate(String issueKey,
                   String newValue)
Sets the original estimate on an issue and submits this change. 
 | 
void | 
setPriority(String issueKey,
           String priority)
Sets the priority of the given issue 
 | 
void | 
setRemainingEstimate(String issueKey,
                    String newValue)
Sets the remaining estimate on an issue and submits this change. 
 | 
void | 
setSecurity(String issueKey,
           String security)
Sets the security of the given issue 
 | 
void | 
unassignIssue(String issueKey,
             String comment)
Unassign an issue. 
 | 
void | 
unassignIssue(String issueKey,
             String comment,
             String commentLevel)
Un-assign an issue. 
 | 
void | 
unvoteIssue(String issueKey)
Removes the user's vote for the issue. 
 | 
void | 
unwatchIssue(String issueKey)
Unwatches the issue for the current user. 
 | 
ViewIssuePage | 
viewIssue(String issueKey)
Navigates to a specific issue. 
 | 
void | 
viewPrintable(String issueKey)
Navigates to a specific issues printable view. 
 | 
void | 
viewXml(String issueKey)
Navigates to a specific issue's XML view. 
 | 
void | 
voteIssue(String issueKey)
Add the user's vote for the issue 
 | 
void | 
watchIssue(String issueKey)
Starts watching an issue if not already watched. 
 | 
@Inject
public IssueNavigationImpl(net.sourceforge.jwebunit.WebTester tester,
                                   JIRAEnvironmentData environmentData)
tester - the testerenvironmentData - the JIRA environmentpublic ViewIssuePage viewIssue(String issueKey)
IssueNavigationviewIssue in interface IssueNavigationissueKey - key of issuepublic void viewPrintable(String issueKey)
IssueNavigationviewPrintable in interface IssueNavigationissueKey - key of issuepublic void viewXml(String issueKey)
IssueNavigationviewXml in interface IssueNavigationissueKey - key of issuepublic void gotoEditIssue(String issueKey)
IssueNavigationgotoEditIssue in interface IssueNavigationissueKey - key of issuepublic void gotoEditIssue(long issueId)
IssueNavigationgotoEditIssue in interface IssueNavigationissueId - id of issuepublic void deleteIssue(String issueKey)
IssueNavigationdeleteIssue in interface IssueNavigationissueKey - issue keypublic void gotoIssue(String issueKey)
IssueNavigationgotoIssue in interface IssueNavigationissueKey - The issuekey to navigate to.public void gotoIssueChangeHistory(String issueKey)
IssueNavigationgotoIssueChangeHistory in interface IssueNavigationissueKey - The issuekey to navigate to.public void gotoIssueWorkLog(String issueKey)
IssueNavigationgotoIssueWorkLog in interface IssueNavigationissueKey - The issuekey to navigate to.public void gotoIssueComments(String issueKey)
IssueNavigationgotoIssueComments in interface IssueNavigationissueKey - The issuekey to navigate to.public String createIssue(String projectName, String issueType, String summary)
IssueNavigationcreateIssue in interface IssueNavigationprojectName - the project name - can be null and hence assume defaultissueType - the issue type - can be null and hence assume defaultsummary - a summary for the issuepublic String createIssue(String projectName, String issueType, String summary, Map<String,String[]> params)
IssueNavigationcreateIssue in interface IssueNavigationprojectName - the project name - can be null and hence assume defaultissueType - the issue type - can be null and hence assume defaultsummary - a summary for the issueparams - a map containing any optional params to add to the issuepublic String createSubTask(String parentIssueKey, String subTaskType, String subTaskSummary, String subTaskDescription)
IssueNavigationcreateSubTask in interface IssueNavigationparentIssueKey - the parent issuesubTaskType - the sub task typesubTaskSummary - the summarysubTaskDescription - the description; use null to omit this fieldpublic String createSubTask(String parentIssueKey, String subTaskType, String subTaskSummary, String subTaskDescription, String originalEstimate)
IssueNavigationcreateSubTask in interface IssueNavigationparentIssueKey - the parent issuesubTaskType - the sub task typesubTaskSummary - the summarysubTaskDescription - the description; use null to omit this fieldoriginalEstimate - original estimate for time tracking field; may be left nullpublic void goToCreateIssueForm(String projectName, String issueType)
IssueNavigationgoToCreateIssueForm in interface IssueNavigationprojectName - The project for the issue to be created in the form.issueType - The issue type for the issue to be created in the form.public void selectProject(String projectName)
IssueNavigationselectProject in interface IssueNavigationprojectName - Name of the project to selectpublic void selectProject(String projectName, String projectFieldName)
IssueNavigationselectProject in interface IssueNavigationprojectName - Name of the project to selectprojectFieldName - ID of project field to selectpublic void selectIssueType(String issueType)
IssueNavigationselectIssueType in interface IssueNavigationissueType - Name of issue type to selectpublic void selectIssueType(String issueType, String issueTypeFieldId)
IssueNavigationselectIssueType in interface IssueNavigationissueType - Name of issue type to selectissueTypeFieldId - ID of issue type field to changepublic void createSubTaskStep1(String issueKey, String task_type)
createSubTaskStep1 in interface IssueNavigationpublic void setPriority(String issueKey, String priority)
IssueNavigationsetPriority in interface IssueNavigationissueKey - issue keypriority - the Displayed priority valuepublic void setSecurity(String issueKey, String security)
IssueNavigationsetSecurity in interface IssueNavigationpublic void setEnvironment(String issueKey, String environment)
IssueNavigationsetEnvironment in interface IssueNavigationissueKey - issue keyenvironment - the textpublic void setDescription(String issueKey, String description)
IssueNavigationsetDescription in interface IssueNavigationissueKey - issue keydescription - the textpublic void setFreeTextCustomField(String issueKey, String customFieldId, String text)
IssueNavigationsetFreeTextCustomField in interface IssueNavigationissueKey - issue keycustomFieldId - the id of the custom field to set e.g. customfield_10000text - the textpublic void assignIssue(String issueKey, String comment, String userFullName)
IssueNavigationassignIssue in interface IssueNavigationissueKey - The issue key of the issue to be assigned.comment - The comment to be added when assigning the specified issue.userFullName - the full name of the user this should be assigned to.public void assignIssue(String issueKey, String userFullName, String comment, String commentLevel)
IssueNavigationassignIssue in interface IssueNavigationissueKey - The issue key of the issue to be assigned.userFullName - The full name of the user the issue will be assigned to.comment - The comment to be added when assigning the specified issue.commentLevel - The group or role that will be able to view the specified comment.public void unassignIssue(String issueKey, String comment)
IssueNavigationunassignIssue in interface IssueNavigationissueKey - The issue key of the issue to be un-assigned.comment - The comment to be added when un-assigning the specified issue.public void unassignIssue(String issueKey, String comment, String commentLevel)
IssueNavigationunassignIssue in interface IssueNavigationissueKey - The issue key of the issue to be un-assigned.comment - The comment to be added when un-assigning the specified issue.commentLevel - The group or role that will be able to view the specified comment.public void resolveIssue(String issueKey, String resolution, String comment)
IssueNavigationresolveIssue in interface IssueNavigationissueKey - the issue key to resolve.resolution - the name of the resolution. e.g. Fixed. Case sensitive!comment - a comment to addpublic void resolveIssue(String issueKey, String resolution, Map<String,String> fieldValues)
IssueNavigationresolveIssue in interface IssueNavigationissueKey - the issue key to resolve.resolution - the name of the resolution. e.g. Fixed. Case sensitive!fieldValues - map of value by fieldId to be set in resolve screenpublic void closeIssue(String issueKey, String resolution, String comment)
IssueNavigationcloseIssue in interface IssueNavigationissueKey - the issue key to resolve.resolution - the name of the resolution. e.g. Fixed. Case sensitive!comment - a comment to addpublic void linkIssueWithComment(String currentIssueKey, String link, String destinationIssueKey, String comment, String commentLevel)
IssueNavigationlinkIssueWithComment in interface IssueNavigationcurrentIssueKey - source issuelink - link namedestinationIssueKey - destination issuecomment - commentcommentLevel - comment levelpublic void linkIssueWithComment(String currentIssueKey, String link, String destinationIssueKey, String comment, String commentLevel, String expectedText)
IssueNavigationlinkIssueWithComment in interface IssueNavigationcurrentIssueKey - source issuelink - link namedestinationIssueKey - destination issuecomment - commentcommentLevel - comment levelexpectedText - expected text on the next page after linking.public AttachmentsBlock attachments(String issueKey)
IssueNavigationattachments in interface IssueNavigationissueKey - the key of the issue.AttachmentsBlock for the provided issue
 key.public AttachmentsBlock attachments(String issueKey, AttachmentsBlock.ViewMode viewMode)
IssueNavigationattachments in interface IssueNavigationissueKey - the key of the issue.viewMode - desired view mode of attachments, either list or galleryAttachmentsBlock for the provided issue
 key.public void resolveIssue(String issueKey, String resolution, String comment, String originalEstimate, String remainingEstimate)
IssueNavigationNOTE:This method assumes time tracking is enabled
resolveIssue in interface IssueNavigationissueKey - the issue key to resolve.resolution - the name of the resolution. e.g. Fixed. Case sensitive!comment - a comment to addoriginalEstimate - The value to set as the original estimate.remainingEstimate - The value to set as the remaining estimate.public void logWork(String issueKey, String timeLogged)
IssueNavigationlogWork in interface IssueNavigationissueKey - the issue to work againsttimeLogged - the duration string (i.e. "2h") representing the work donpublic void logWork(String issueKey, String timeLogged, String newEstimate)
logWork in interface IssueNavigationissueKey - the key of the issue to log work on.timeLogged - formatted time spent e.g. 1h 30m.newEstimate - formatted new estimate e.g. 1d 2h.public void logWorkWithComment(String issueKey, String timeLogged, String comment)
IssueNavigationlogWorkWithComment in interface IssueNavigationissueKey - the key of the issue to log work on.timeLogged - formatted time spent e.g. 1h 30m.comment - comment to add while logging the workpublic void reopenIssue(String issueKey)
IssueNavigationreopenIssue in interface IssueNavigationissueKey - the issue key to reopen.public void performIssueActionWithoutDetailsDialog(String issueKey, String actionName)
IssueNavigationperformIssueActionWithoutDetailsDialog in interface IssueNavigationissueKey - the issue key to reopen.public void unwatchIssue(String issueKey)
IssueNavigationunwatchIssue in interface IssueNavigationissueKey - the issue keypublic void watchIssue(String issueKey)
IssueNavigationwatchIssue in interface IssueNavigationissueKey - the issue to watchpublic IssueNavigation addWatchers(String issueKey, String... usernames)
IssueNavigationaddWatchers in interface IssueNavigationissueKey - key of the issueusernames - usernames of users to add as watcherspublic void unvoteIssue(String issueKey)
IssueNavigationunvoteIssue in interface IssueNavigationissueKey - the issue keypublic void voteIssue(String issueKey)
IssueNavigationvoteIssue in interface IssueNavigationissueKey - the issue keypublic void addComment(String issueKey, String comment)
IssueNavigationaddComment in interface IssueNavigationissueKey - The issue key.comment - The body of the comment to be added.public void addComment(String issueKey, String comment, String roleLevel)
IssueNavigationaddComment in interface IssueNavigationissueKey - The issue key.comment - The body of the comment to be added.roleLevel - role level; use null to not select any role level.public void setFixVersions(String issueKey, String... fixVersions)
IssueNavigationsetFixVersions in interface IssueNavigationissueKey - issue keyfixVersions - the names of the versions e.g. New Version 4public void setAffectsVersions(String issueKey, String... affectsVersions)
IssueNavigationsetAffectsVersions in interface IssueNavigationissueKey - issue keyaffectsVersions - the names of the versions e.g. New Version 4public void setComponents(String issueKey, String... components)
IssueNavigationsetComponents in interface IssueNavigationissueKey - issue keycomponents - componentspublic void setDueDate(String issueKey, String dateString)
IssueNavigationsetDueDate in interface IssueNavigationpublic void setIssueMultiSelectField(String issueKey, String selectName, String... options)
IssueNavigationsetIssueMultiSelectField in interface IssueNavigationissueKey - issue keyselectName - the id of the field e.g. customfield_10000options - the named options, not the valuespublic void setEstimates(String issueKey, String originalEstimate, String remainingEstimate)
IssueNavigationSets the original and remaining estimate on an issue and submits this change.
NOTE:This method assumes time tracking is enabled
setEstimates in interface IssueNavigationissueKey - The issue that the remaining estimate will be set on.originalEstimate - The value to set as the original estimate.remainingEstimate - The value to set as the remaining estimate.public void setOriginalEstimate(String issueKey, String newValue)
IssueNavigationSets the original estimate on an issue and submits this change.
NOTE:This method assumes time tracking is enabled
setOriginalEstimate in interface IssueNavigationissueKey - The issue that the original estimate will be set on.newValue - The value to set as the original estimate.public void setRemainingEstimate(String issueKey, String newValue)
IssueNavigationSets the remaining estimate on an issue and submits this change.
NOTE:This method assumes time tracking is enabled
setRemainingEstimate in interface IssueNavigationissueKey - The issue that the remaining estimate will be set on.newValue - The value to set as the remaining estimate.public IssueNavigation editLabels(int issueId)
IssueNavigationeditLabels in interface IssueNavigationissueId - Id of the issuepublic IssueNavigation editCustomLabels(int issueId, int customFieldId)
IssueNavigationeditCustomLabels in interface IssueNavigationissueId - ID of the issuecustomFieldId - ID of the labels custom fieldpublic IssueNavigatorNavigation returnToSearch()
IssueNavigationreturnToSearch in interface IssueNavigationpublic String getId(String issueKey)
IssueNavigationgetId in interface IssueNavigationissueKey - The key of the issue in play.String containing the issue's id.Copyright © 2002-2024 Atlassian. All Rights Reserved.