Class IssueInputParametersImpl
- All Implemented Interfaces:
IssueInputParameters
Plugin developers should call IssueService.newIssueInputParameters()
or IssueService.newIssueInputParameters(java.util.Map).
- Since:
- v4.1
-
Constructor Summary
ConstructorsConstructorDescriptionIssueInputParametersImpl(Map<String, String[]> actionParameters) Can be used to quickly convert some "web-style" parameters (which can be the result of a form submit with the fields rendered create/edit html) to an IssueInputParameters object. -
Method Summary
Modifier and TypeMethodDescriptionaddCustomFieldValue(Long customFieldId, String... values) Adds a value for a custom field with the specified id.addCustomFieldValue(String fullCustomFieldKey, String... values) Adds a value for a custom field with the specified full key.voidaddFieldToForcePresent(String fieldId) Extra fields to consider present, even if they are not in the actionParams.addProperty(String propertyKey, String propertyValue) Allows properties to be set on issues during create or updatebooleanThis provides the "web-style" parameters that JIRA fields expect to perform their functions.Long[]Long[]String[]getCustomFieldValue(Long customFieldId) String[]getCustomFieldValue(String fullCustomFieldKey) Long[]Return form token if it is present in input parametersGets the original estimate set.Gets the original estimate set.Gets the remaining estimate set.Gets the remaining estimate providedbooleanisFieldPresent(String fieldId) booleanisFieldSet(String fieldId) booleanGet the flag to designate which fields are to be validated when theIssueInputParameters.retainExistingValuesWhenParameterNotProvided()flag is set totrue.booleansetAffectedVersionIds(Long... affectedVersionIds) voidsetApplyDefaultValuesWhenParameterNotProvided(boolean applyDefaultValuesWhenParameterNotProvided) setAssigneeId(String assigneeId) setComment(String comment) Set a comment value with no visibility restrictions.setComment(String comment, Long projectRoleId) Set a comment value with a project role restriction.setComment(String comment, String groupId) Set a comment value with a group restriction.setComponentIds(Long... componentIds) setDescription(String description) setDueDate(String dueDate) setEnvironment(String environment) voidsetFieldValuesHolder(Map<String, Object> fieldValuesHolder) If set the validation will use the seed values from this field values holder.setFixVersionIds(Long... fixVersionIds) setHistoryMetadata(HistoryMetadata historyMetadata) Allows defining history metadata related to the issue update.setIssueTypeId(String issueTypeId) setOriginalAndRemainingEstimate(Long originalEstimate, Long remainingEstimate) Sets both the original and remaining estimate on the issue.setOriginalAndRemainingEstimate(String originalEstimate, String remainingEstimate) Sets both the original and remaining estimate on the issue.setOriginalEstimate(Long originalEstimate) Sets the original estimate on the issue.setOriginalEstimate(String originalEstimate) Sets the original estimate on the issue.setPriorityId(String priorityId) setProjectId(Long projectId) voidsetProvidedFields(Collection<String> providedFields) Use this to indicate which fields validation should be performed on, if left alone then the systems configured fields for either create/update will be used.setRemainingEstimate(Long remainingEstimate) Sets the remaining estimate on the issuesetRemainingEstimate(String remainingEstimate) Sets the remaining estimate on the issuesetReporterId(String reporterId) setResolutionDate(String resolutionDate) setResolutionId(String resolutionId) voidsetRetainExistingValuesWhenParameterNotProvided(boolean retain) Flag to designate whether existing values should be retained when no parameter is provided.voidsetRetainExistingValuesWhenParameterNotProvided(boolean retainExistingValues, boolean onlyValidatePresentFields) setSecurityLevelId(Long securityLevelId) voidsetSkipLicenceCheck(boolean skipLicenceCheck) Set the flag to skip licence checks during create.voidsetSkipScreenCheck(boolean skipScreenCheck) Set the flag to skip screen checks during create, update or transition.setStatusId(String statusId) setSummary(String summary) setTimeSpent(Long timeSpent) booleanReturnstrueif theskipLicenceCheckflag is set.booleanGet the flag to skip screen checks during create, update or transition.
-
Constructor Details
-
IssueInputParametersImpl
public IssueInputParametersImpl() -
IssueInputParametersImpl
Can be used to quickly convert some "web-style" parameters (which can be the result of a form submit with the fields rendered create/edit html) to an IssueInputParameters object.- Parameters:
actionParameters- provides the default starting values for this object.
-
-
Method Details
-
setProjectId
- Specified by:
setProjectIdin interfaceIssueInputParameters- Parameters:
projectId- sets the project id for the issue.- Returns:
- this object.
-
getProjectId
- Specified by:
getProjectIdin interfaceIssueInputParameters- Returns:
- the set project id, null if one does not exist or if it is not a valid number.
-
setIssueTypeId
- Specified by:
setIssueTypeIdin interfaceIssueInputParameters- Parameters:
issueTypeId- sets the issue type for the issue.- Returns:
- this object.
-
getIssueTypeId
- Specified by:
getIssueTypeIdin interfaceIssueInputParameters- Returns:
- the set issue type id, null if one does not exist.
-
setPriorityId
- Specified by:
setPriorityIdin interfaceIssueInputParameters- Parameters:
priorityId- sets the priority for the issue.- Returns:
- this object.
-
getPriorityId
- Specified by:
getPriorityIdin interfaceIssueInputParameters- Returns:
- the set priority id, null if one does not exist.
-
setResolutionId
- Specified by:
setResolutionIdin interfaceIssueInputParameters- Parameters:
resolutionId- sets the resolution for the issue.- Returns:
- this object.
-
getResolutionId
- Specified by:
getResolutionIdin interfaceIssueInputParameters- Returns:
- the set resolution id, null if one does not exist.
-
setStatusId
- Specified by:
setStatusIdin interfaceIssueInputParameters- Parameters:
statusId- sets the status of the issue.- Returns:
- this object.
-
getStatusId
- Specified by:
getStatusIdin interfaceIssueInputParameters- Returns:
- the set status id, null if one does not exist.
-
setSummary
- Specified by:
setSummaryin interfaceIssueInputParameters- Parameters:
summary- sets the summary for the issue.- Returns:
- this object.
-
getSummary
- Specified by:
getSummaryin interfaceIssueInputParameters- Returns:
- the set summary, null if one does not exist.
-
setDescription
- Specified by:
setDescriptionin interfaceIssueInputParameters- Parameters:
description- sets the description for the issue.- Returns:
- this object.
-
getDescription
- Specified by:
getDescriptionin interfaceIssueInputParameters- Returns:
- the set description, null if one does not exist.
-
setEnvironment
- Specified by:
setEnvironmentin interfaceIssueInputParameters- Parameters:
environment- sets the environment of the issue.- Returns:
- this object.
-
getEnvironment
- Specified by:
getEnvironmentin interfaceIssueInputParameters- Returns:
- the set environment, null if one does not exist.
-
setAssigneeId
- Specified by:
setAssigneeIdin interfaceIssueInputParameters- Parameters:
assigneeId- sets the assignee id for the issue.- Returns:
- this object.
-
getAssigneeId
- Specified by:
getAssigneeIdin interfaceIssueInputParameters- Returns:
- the set assginee, null if one does not exist.
-
setReporterId
- Specified by:
setReporterIdin interfaceIssueInputParameters- Parameters:
reporterId- sets the reporter id for the issue.- Returns:
- this object.
-
getReporterId
- Specified by:
getReporterIdin interfaceIssueInputParameters- Returns:
- the set reporter, null if one does not exist.
-
setComponentIds
- Specified by:
setComponentIdsin interfaceIssueInputParameters- Parameters:
componentIds- sets the components id's on the issue.- Returns:
- this object.
-
getComponentIds
- Specified by:
getComponentIdsin interfaceIssueInputParameters- Returns:
- the set component id's, null if they do not exist or if they are not valid numbers.
-
setFixVersionIds
- Specified by:
setFixVersionIdsin interfaceIssueInputParameters- Parameters:
fixVersionIds- sets the fix version id's on the issue.- Returns:
- this object.
-
getFixVersionIds
- Specified by:
getFixVersionIdsin interfaceIssueInputParameters- Returns:
- the set fix version id's, null if they do not exist or if they are not valid numbers.
-
setAffectedVersionIds
- Specified by:
setAffectedVersionIdsin interfaceIssueInputParameters- Parameters:
affectedVersionIds- sets the affected version id's= on the issue.- Returns:
- this object.
-
getAffectedVersionIds
- Specified by:
getAffectedVersionIdsin interfaceIssueInputParameters- Returns:
- the set affected version id's, null if they do not exist or if they are not valid numbers.
-
setDueDate
- Specified by:
setDueDatein interfaceIssueInputParameters- Parameters:
dueDate- the formatted string that JIRA will accept as a date that will be set on the issue.- Returns:
- this object.
-
getDueDate
- Specified by:
getDueDatein interfaceIssueInputParameters- Returns:
- the set due date, null if one does not exist.
-
setResolutionDate
- Specified by:
setResolutionDatein interfaceIssueInputParameters- Parameters:
resolutionDate- the formatted string that JIRA will accept as a date that will be set on the issue.- Returns:
- this object.
-
getResolutionDate
- Specified by:
getResolutionDatein interfaceIssueInputParameters- Returns:
- the set resolution date, null if one does not exist.
-
setSecurityLevelId
- Specified by:
setSecurityLevelIdin interfaceIssueInputParameters- Parameters:
securityLevelId- sets the security level id on the issue.- Returns:
- this object.
-
getSecurityLevelId
- Specified by:
getSecurityLevelIdin interfaceIssueInputParameters- Returns:
- the set security level id, null if one does not exist or it is not a valid number.
-
setOriginalEstimate
Description copied from interface:IssueInputParametersSets the original estimate on the issue.If (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this method behaves differently.See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- In legacy mode, this will change the original and remaining estimate if work has not yet started. If work has already been logged, it will alter the remaining estimate but leave the original estimate unchanged
- In modern mode, this will only change the original estimate. If you want to change both in a single request
use
IssueInputParameters.setOriginalAndRemainingEstimate(String, String)/IssueInputParameters.setOriginalAndRemainingEstimate(Long, Long).Calls to
IssueInputParameters.setOriginalEstimate(Long)/IssueInputParameters.setOriginalEstimate(String)andIssueInputParameters.setRemainingEstimate(Long)/IssueInputParameters.setRemainingEstimate(String)are mutually exclusive, so calling both on the same instance will not produce the desired effect.
- Specified by:
setOriginalEstimatein interfaceIssueInputParameters- Parameters:
originalEstimate- the new original estimate on the issue. The units used are determined byAPKeys.JIRA_TIMETRACKING_DEFAULT_UNIT.- Returns:
- this object.
-
setOriginalEstimate
Description copied from interface:IssueInputParametersSets the original estimate on the issue.If (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this method behaves differently.See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- In legacy mode, this will change the original and remaining estimate if work has not yet started. If work has already been logged, it will alter the remaining estimate but leave the original estimate unchanged
- In modern mode, this will only change the original estimate. If you want to change both in a single request
use
IssueInputParameters.setOriginalAndRemainingEstimate(String, String). Calls toIssueInputParameters.setOriginalEstimate(Long)/IssueInputParameters.setOriginalEstimate(String)andIssueInputParameters.setRemainingEstimate(Long)/IssueInputParameters.setRemainingEstimate(String)are mutually exclusive, so calling both on the same instance will not produce the desired effect.
- Specified by:
setOriginalEstimatein interfaceIssueInputParameters- Parameters:
originalEstimate- the new original estimate on the issue, e.g. "1d 5h" for 1 day and 5 hours- Returns:
- this object.
-
setRemainingEstimate
Description copied from interface:IssueInputParametersSets the remaining estimate on the issueIf (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this method behaves differently.See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- In legacy mode, this has the same behaviour as
IssueInputParameters.setOriginalEstimate(String), changing the original and remaining estimate if work has not yet started. If work has already been logged, it will alter the remaining estimate but leave the original estimate unchanged. - In modern mode, this will only change the remaining estimate. If you want to change both in a single request
use
IssueInputParameters.setOriginalAndRemainingEstimate(String, String)/IssueInputParameters.setOriginalAndRemainingEstimate(Long, Long).Calls to
IssueInputParameters.setOriginalEstimate(Long)/IssueInputParameters.setOriginalEstimate(String)andIssueInputParameters.setRemainingEstimate(Long)/IssueInputParameters.setRemainingEstimate(String)are mutually exclusive, so calling both on the same instance will not produce the desired effect.
- Specified by:
setRemainingEstimatein interfaceIssueInputParameters- Parameters:
remainingEstimate- the remaining estimate on the issue. The units used are determined byAPKeys.JIRA_TIMETRACKING_DEFAULT_UNIT.- Returns:
- this object
- In legacy mode, this has the same behaviour as
-
setRemainingEstimate
Description copied from interface:IssueInputParametersSets the remaining estimate on the issueIf (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this method behaves differently.See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- In legacy mode, this has the same behaviour as
IssueInputParameters.setOriginalEstimate(String), changing the original and remaining estimate if work has not yet started. If work has already been logged, it will alter the remaining estimate but leave the original estimate unchanged. - In modern mode, this will only change the remaining estimate. If you want to change both in a single request
use
IssueInputParameters.setOriginalAndRemainingEstimate(String, String)/IssueInputParameters.setOriginalAndRemainingEstimate(Long, Long).Calls to
IssueInputParameters.setOriginalEstimate(Long)/IssueInputParameters.setOriginalEstimate(String)andIssueInputParameters.setRemainingEstimate(Long)/IssueInputParameters.setRemainingEstimate(String)are mutually exclusive, so calling both on the same instance will not produce the desired effect.
- Specified by:
setRemainingEstimatein interfaceIssueInputParameters- Parameters:
remainingEstimate- the remaining estimate on the issue, e.g. "1d 5h" for 1 day and 5 hours- Returns:
- this object
- In legacy mode, this has the same behaviour as
-
setOriginalAndRemainingEstimate
public IssueInputParameters setOriginalAndRemainingEstimate(String originalEstimate, String remainingEstimate) Description copied from interface:IssueInputParametersSets both the original and remaining estimate on the issue.If (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this method has no effect.See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- Specified by:
setOriginalAndRemainingEstimatein interfaceIssueInputParameters- Parameters:
originalEstimate- the new original estimate, e.g. "1d 5h" for 1 day and 5 hoursremainingEstimate- the new remaining estimate, e.g. "1d 5h" for 1 day and 5 hours- Returns:
- this object
-
setOriginalAndRemainingEstimate
public IssueInputParameters setOriginalAndRemainingEstimate(Long originalEstimate, Long remainingEstimate) Description copied from interface:IssueInputParametersSets both the original and remaining estimate on the issue.If (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this method has no effect.See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- Specified by:
setOriginalAndRemainingEstimatein interfaceIssueInputParameters- Parameters:
originalEstimate- the new original estimate. The units used are determined byAPKeys.JIRA_TIMETRACKING_DEFAULT_UNIT.remainingEstimate- the new remaining estimate.The units used are determined byAPKeys.JIRA_TIMETRACKING_DEFAULT_UNIT.- Returns:
- this object
-
getOriginalEstimate
Description copied from interface:IssueInputParametersGets the original estimate set.If (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this will return the same asIssueInputParameters.getRemainingEstimate().See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- Specified by:
getOriginalEstimatein interfaceIssueInputParameters- Returns:
- the set original estimate, null if one does not exist or it is not a valid number.
-
getRemainingEstimate
Description copied from interface:IssueInputParametersGets the remaining estimate set.If (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this will return the same asIssueInputParameters.getOriginalEstimate().See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- Specified by:
getRemainingEstimatein interfaceIssueInputParameters- Returns:
- the set remaining estimate, null if one does not exist or it is not a valid number.
-
getRemainingEstimateAsDurationString
Description copied from interface:IssueInputParametersGets the remaining estimate providedIf (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this will return the same asIssueInputParameters.getOriginalEstimateAsDurationString().See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- Specified by:
getRemainingEstimateAsDurationStringin interfaceIssueInputParameters- Returns:
- the set remaining estimate, null if one does not exist.
-
getOriginalEstimateAsDurationString
Description copied from interface:IssueInputParametersGets the original estimate set.If (
APKeys.JIRA_OPTION_TIMETRACKING_ESTIMATES_LEGACY_BEHAVIOURis set, we are in legacy time tracking mode and this will return the same asIssueInputParameters.getRemainingEstimateAsDurationString().See http://confluence.atlassian.com/display/JIRA044/Configuring+Time+Tracking#ConfiguringTimeTracking-legacymode for more information on legacy mode.
- Specified by:
getOriginalEstimateAsDurationStringin interfaceIssueInputParameters- Returns:
- the set original estimate, null if one does not exist.
-
setTimeSpent
- Specified by:
setTimeSpentin interfaceIssueInputParameters- Parameters:
timeSpent- sets the time spent on the issue.- Returns:
- this object.
-
getTimeSpent
- Specified by:
getTimeSpentin interfaceIssueInputParameters- Returns:
- the set time spent, null if one does not exist or it is not a valid number.
-
setHistoryMetadata
Description copied from interface:IssueInputParametersAllows defining history metadata related to the issue update. This is only relevant for changes that generate history entries (transitions and updates).- Specified by:
setHistoryMetadatain interfaceIssueInputParameters- Parameters:
historyMetadata- the metadata to save with the history change- Returns:
- this object
-
getHistoryMetadata
- Specified by:
getHistoryMetadatain interfaceIssueInputParameters- Returns:
- the current history metadata for the update, null if not defined
-
getFormToken
Description copied from interface:IssueInputParametersReturn form token if it is present in input parameters- Specified by:
getFormTokenin interfaceIssueInputParameters- Returns:
- the form token
-
addCustomFieldValue
Description copied from interface:IssueInputParametersAdds a value for a custom field with the specified id. This will put a value in the web-style parameters with a key of the form "customfield_PROVIDED_ID". If you want to specify the key then use the methodIssueInputParameters.addCustomFieldValue(String, String...).- Specified by:
addCustomFieldValuein interfaceIssueInputParameters- Parameters:
customFieldId- the unique identifier of the custom field.values- the custom field values, must be in the format the field expects.- Returns:
- this object.
-
addCustomFieldValue
Description copied from interface:IssueInputParametersAdds a value for a custom field with the specified full key. This will put a value in the web-style parameters with a key as provided.- Specified by:
addCustomFieldValuein interfaceIssueInputParameters- Parameters:
fullCustomFieldKey- used in the "web-style" parameters as the key, the custom field should expect this value as the key in its populate from parameters method.values- the custom field values, must be in the format the field expects.- Returns:
- this object.
-
retainExistingValuesWhenParameterNotProvided
public boolean retainExistingValuesWhenParameterNotProvided()- Specified by:
retainExistingValuesWhenParameterNotProvidedin interfaceIssueInputParameters- Returns:
- true if the issues value should be retained when a parameter has not been provided, false if the missing parameter should be treated as an update.
-
setRetainExistingValuesWhenParameterNotProvided
public void setRetainExistingValuesWhenParameterNotProvided(boolean retain) Description copied from interface:IssueInputParametersFlag to designate whether existing values should be retained when no parameter is provided.Note: setting this flag here will assume that validation of fields should still occur, even if they were not specified. To change this, please use
IssueInputParameters.setRetainExistingValuesWhenParameterNotProvided(boolean, boolean)instead.- Specified by:
setRetainExistingValuesWhenParameterNotProvidedin interfaceIssueInputParameters- Parameters:
retain- true if non-provided parameters should have the values retained, false otherwise.- See Also:
-
setRetainExistingValuesWhenParameterNotProvided
public void setRetainExistingValuesWhenParameterNotProvided(boolean retainExistingValues, boolean onlyValidatePresentFields) Description copied from interface:IssueInputParametersSet flagsIssueInputParameters.retainExistingValuesWhenParameterNotProvided()andIssueInputParameters.onlyValidatePresentFieldsWhenRetainingExistingValues().The latter is only relevant when the former is true.
- Specified by:
setRetainExistingValuesWhenParameterNotProvidedin interfaceIssueInputParameters- Parameters:
retainExistingValues- true if non-provided parameters should have the values retained, false otherwise.onlyValidatePresentFields- whether or not to only validate present fields- See Also:
-
onlyValidatePresentFieldsWhenRetainingExistingValues
public boolean onlyValidatePresentFieldsWhenRetainingExistingValues()Description copied from interface:IssueInputParametersGet the flag to designate which fields are to be validated when theIssueInputParameters.retainExistingValuesWhenParameterNotProvided()flag is set totrue.If this flag is
true, only fields which are "present" will take part in validation (and subsequently update) on the issue. This allows single-field edits to ignore the validation of other fields on the issue.If this flag is
false, or ifIssueInputParameters.retainExistingValuesWhenParameterNotProvided()isfalse, then all fields on the screen of the current operation will partake in the "validation-update" step.- Specified by:
onlyValidatePresentFieldsWhenRetainingExistingValuesin interfaceIssueInputParameters- Returns:
- whether or not to only validate present fields
- See Also:
-
applyDefaultValuesWhenParameterNotProvided
public boolean applyDefaultValuesWhenParameterNotProvided()- Specified by:
applyDefaultValuesWhenParameterNotProvidedin interfaceIssueInputParameters- Returns:
- true if default value should be supplied when a parameter has not been provided. false if the default value should not be applied.
-
setApplyDefaultValuesWhenParameterNotProvided
public void setApplyDefaultValuesWhenParameterNotProvided(boolean applyDefaultValuesWhenParameterNotProvided) - Specified by:
setApplyDefaultValuesWhenParameterNotProvidedin interfaceIssueInputParameters- Parameters:
applyDefaultValuesWhenParameterNotProvided- true if default value should be supplied when a parameter has not been provided. false if the default value should not be applied.
-
skipScreenCheck
public boolean skipScreenCheck()Description copied from interface:IssueInputParametersGet the flag to skip screen checks during create, update or transition.By default, the Issue Service only allows setting values to fields which appear on the screen of the operation which you are performing (e.g. the Edit screen). By enabling this flag, the Issue Service will skip this check.
- Specified by:
skipScreenCheckin interfaceIssueInputParameters- Returns:
- whether or not we are skipping screen check
- See Also:
-
setSkipScreenCheck
public void setSkipScreenCheck(boolean skipScreenCheck) Description copied from interface:IssueInputParametersSet the flag to skip screen checks during create, update or transition.By default, the Issue Service only allows setting values to fields which appear on the screen of the operation which you are performing (e.g. the Edit screen). By enabling this flag, the Issue Service will skip this check.
- Specified by:
setSkipScreenCheckin interfaceIssueInputParameters- Parameters:
skipScreenCheck- whether or not we are skipping screen check- See Also:
-
skipLicenceCheck
public boolean skipLicenceCheck()Description copied from interface:IssueInputParametersReturnstrueif theskipLicenceCheckflag is set.- Specified by:
skipLicenceCheckin interfaceIssueInputParameters- Returns:
- the value of the
skipLicenceCheckflag.
-
setSkipLicenceCheck
public void setSkipLicenceCheck(boolean skipLicenceCheck) Description copied from interface:IssueInputParametersSet the flag to skip licence checks during create.By default, the Issue Service will check the user is licensed to an application role. By enabling this flag, the Issue Service will skip this check.
- Specified by:
setSkipLicenceCheckin interfaceIssueInputParameters- Parameters:
skipLicenceCheck- whether or not we are skipping the licence check
-
getCustomFieldValue
- Specified by:
getCustomFieldValuein interfaceIssueInputParameters- Parameters:
customFieldId- uniquely identifies the custom field value you are looking for.- Returns:
- the values for the provided custom field if they exist, null otherwise.
-
getCustomFieldValue
- Specified by:
getCustomFieldValuein interfaceIssueInputParameters- Parameters:
fullCustomFieldKey- identifies the custom field values you are looking for.- Returns:
- the values for the provided custom field if they exist, null otherwise.
-
getCommentValue
- Specified by:
getCommentValuein interfaceIssueInputParameters- Returns:
- the comment string value if it has been set, null otherwise.
-
setComment
Description copied from interface:IssueInputParametersSet a comment value with no visibility restrictions.- Specified by:
setCommentin interfaceIssueInputParameters- Parameters:
comment- the comment value.- Returns:
- this object.
-
setComment
Description copied from interface:IssueInputParametersSet a comment value with a project role restriction.- Specified by:
setCommentin interfaceIssueInputParameters- Parameters:
comment- the comment value.projectRoleId- the id of the project role the comment must be restricted by.- Returns:
- this object.
-
setComment
Description copied from interface:IssueInputParametersSet a comment value with a group restriction.- Specified by:
setCommentin interfaceIssueInputParameters- Parameters:
comment- the comment value.groupId- the group name that the comment must be restricted by.- Returns:
- this object.
-
getActionParameters
Description copied from interface:IssueInputParametersThis provides the "web-style" parameters that JIRA fields expect to perform their functions.- Specified by:
getActionParametersin interfaceIssueInputParameters- Returns:
- this is a raw map of "web" style input parameters. These parameters are used to allow the fields to attain the user inputted values. This map is of the style: <field_name> <String [] {value}>.
-
setFieldValuesHolder
Description copied from interface:IssueInputParametersIf set the validation will use the seed values from this field values holder.- Specified by:
setFieldValuesHolderin interfaceIssueInputParameters- Parameters:
fieldValuesHolder- provides the seed values for the field values holder.
-
getFieldValuesHolder
- Specified by:
getFieldValuesHolderin interfaceIssueInputParameters- Returns:
- the provided field values holder or an empty map, never null.
-
getProvidedFields
- Specified by:
getProvidedFieldsin interfaceIssueInputParameters- Returns:
- the field id's that should be validated, null if not specified.
-
setProvidedFields
Description copied from interface:IssueInputParametersUse this to indicate which fields validation should be performed on, if left alone then the systems configured fields for either create/update will be used.- Specified by:
setProvidedFieldsin interfaceIssueInputParameters- Parameters:
providedFields- a collection ofField.getId()'s which identify the fields.
-
isFieldSet
- Specified by:
isFieldSetin interfaceIssueInputParameters- Parameters:
fieldId- identifies the field in question, this will be theField.getId().- Returns:
- true if a non-null, non-empty value has been set for the field, false if not.
-
addFieldToForcePresent
Description copied from interface:IssueInputParametersExtra fields to consider present, even if they are not in the actionParams. When "setRetainExisitingValuesWhenParameterNotProvided" is true, a field is not considered for update if its parameter is not provided. You can force a field to be considered even if its parameter is not providfed by forcing it to be considered by this setter.The action post params can also contain an array of fieldIds under the "fieldsToForcePresent" param.
This may be useful if you want to clear a field's value in a single field edit.
- Specified by:
addFieldToForcePresentin interfaceIssueInputParameters- Parameters:
fieldId- the id of the field to force to be present
-
isFieldPresent
- Specified by:
isFieldPresentin interfaceIssueInputParameters- Parameters:
fieldId- identifies the field in question, this will be theField.getId().- Returns:
- true if the field has been set, even with an empty value, false if not.
-
addProperty
Description copied from interface:IssueInputParametersAllows properties to be set on issues during create or update- Specified by:
addPropertyin interfaceIssueInputParameters- Parameters:
propertyKey- the key to the propertypropertyValue- the JSON property value- Returns:
- this object
-
properties
- Specified by:
propertiesin interfaceIssueInputParameters- Returns:
- JSON issue properties
-