action.createParam(Param.PAGE)
.setDescription("Deprecated parameter")
.setDeprecatedSince("5.5")
- .setDeprecatedKey("pageIndex");
+ .setDeprecatedKey("pageIndex", "5.4");
action.addPageSize(100, MAX_PAGE_SIZE);
}
action.createParam(PARAM_ASSIGN)
.setDescription("To assign the list of issues to a specific user (login), or un-assign all the issues")
.setExampleValue("john.smith")
- .setDeprecatedKey("assign.assignee");
+ .setDeprecatedKey("assign.assignee", "6.2");
action.createParam(PARAM_SET_SEVERITY)
.setDescription("To change the severity of the list of issues")
.setExampleValue(BLOCKER)
.setPossibleValues(Severity.ALL)
- .setDeprecatedKey("set_severity.severity");
+ .setDeprecatedKey("set_severity.severity", "6.2");
action.createParam(PARAM_SET_TYPE)
.setDescription("To change the type of the list of issues")
.setExampleValue(BUG)
.setPossibleValues(RuleType.names())
.setSince("5.5")
- .setDeprecatedKey("set_type.type");
+ .setDeprecatedKey("set_type.type", "6.2");
action.createParam(PARAM_PLAN)
.setDescription("In 5.5, action plans are dropped. Has no effect. To plan the list of issues to a specific action plan (key), or unlink all the issues from an action plan")
.setDeprecatedSince("5.5");
.setDescription("Transition")
.setExampleValue(REOPEN)
.setPossibleValues(DefaultTransitions.ALL)
- .setDeprecatedKey("do_transition.transition");
+ .setDeprecatedKey("do_transition.transition", "6.2");
action.createParam(PARAM_ADD_TAGS)
.setDescription("Add tags")
.setExampleValue("security,java8")
- .setDeprecatedKey("add_tags.tags");
+ .setDeprecatedKey("add_tags.tags", "6.2");
action.createParam(PARAM_REMOVE_TAGS)
.setDescription("Remove tags")
.setExampleValue("security,java8")
- .setDeprecatedKey("remove_tags.tags");
+ .setDeprecatedKey("remove_tags.tags", "6.2");
action.createParam(PARAM_COMMENT)
.setDescription("To add a comment to a list of issues")
.setExampleValue("Here is my comment");
action.createParam(PARAM_COMMENT)
.setDescription("Comment key")
- .setDeprecatedKey("key")
+ .setDeprecatedKey("key", "6.3")
.setSince("6.3")
.setRequired(true)
.setExampleValue(UUID_EXAMPLE_01);
action.createParam(PARAM_COMMENT)
.setDescription("Comment key")
- .setDeprecatedKey("key")
+ .setDeprecatedKey("key", "6.3")
.setSince("6.3")
.setRequired(true)
.setExampleValue(UUID_EXAMPLE_01);
action.createParam(PARAM_PROJECTS)
.setDeprecatedSince("5.1")
.setDescription("See projectKeys");
+
action.createParam(PARAM_PROJECT_KEYS)
.setDescription("To retrieve issues associated to a specific list of projects (comma-separated list of project keys). " +
INTERNAL_PARAMETER_DISCLAIMER +
"If this parameter is set, projectUuids must not be set.")
- .setDeprecatedKey(PARAM_PROJECTS)
+ .setDeprecatedKey(PARAM_PROJECTS, "6.3")
.setExampleValue(KEY_PROJECT_EXAMPLE_001);
+
action.createParam(PARAM_PROJECT_UUIDS)
.setDescription("To retrieve issues associated to a specific list of projects (comma-separated list of project UUIDs). " +
INTERNAL_PARAMETER_DISCLAIMER +
action.createParam(PARAM_ISSUE)
.setDescription("Issue key")
.setSince("6.3")
- .setDeprecatedKey("key")
+ .setDeprecatedKey("key", "6.3")
.setExampleValue(Uuids.UUID_EXAMPLE_01)
.setRequired(true);
action.createParam(PARAM_TAGS)
action.createParam(PARAM_PROJECT)
.setDescription("Key of the project")
- .setDeprecatedKey(DEPRECATED_PARAM_KEY)
+ .setDeprecatedKey(DEPRECATED_PARAM_KEY, "6.3")
.setRequired(true)
.setExampleValue(KEY_PROJECT_EXAMPLE_001);
private static void addRemovedParameter(String key, WebService.NewAction action) {
action.createParam(key)
.setDescription("Since 6.3, this parameter has no effect")
- .setDeprecatedKey("6.3");
+ .setDeprecatedSince("6.3");
}
}
create.createParam(PARAM_PROFILE_NAME)
.setDescription("The name for the new quality profile. Since 6.1, this parameter has been renamed from '%s' to '%s'", DEPRECATED_PARAM_PROFILE_NAME, PARAM_PROFILE_NAME)
.setExampleValue("My Sonar way")
- .setDeprecatedKey(DEPRECATED_PARAM_PROFILE_NAME)
+ .setDeprecatedKey(DEPRECATED_PARAM_PROFILE_NAME, "6.3")
.setRequired(true);
create.createParam(PARAM_LANGUAGE)
"Possible values are described by api/qualityprofiles/exporters.")
.setPossibleValues(exporterKeys)
// This deprecated key is only there to be able to deal with redirection from /profiles/export
- .setDeprecatedKey("format");
+ .setDeprecatedKey("format", "6.3");
}
}
.setRequired(true);
action.createParam(PARAM_COMPONENT)
.setDescription("Component key")
- .setDeprecatedKey("componentKey")
+ .setDeprecatedKey("componentKey", "6.3")
.setExampleValue(KEY_PROJECT_EXAMPLE_001);
}
action.createParam(PARAM_COMPONENT)
.setDescription("Component key")
- .setDeprecatedKey("componentKey")
+ .setDeprecatedKey("componentKey", "6.3")
.setExampleValue(KEY_PROJECT_EXAMPLE_001);
}
action.createParam(PARAM_SCM_ACCOUNTS)
.setDescription("This parameter is deprecated, please use '%s' instead", PARAM_SCM_ACCOUNT)
- .setDeprecatedKey(PARAM_SCM_ACCOUNTS_DEPRECATED)
+ .setDeprecatedKey(PARAM_SCM_ACCOUNTS_DEPRECATED, "6.0")
.setDeprecatedSince("6.1")
.setExampleValue("myscmaccount1,myscmaccount2");
action.createParam(PARAM_SCM_ACCOUNTS)
.setDescription("This parameter is deprecated, please use '%s' instead", PARAM_SCM_ACCOUNT)
- .setDeprecatedKey(PARAM_SCM_ACCOUNTS_DEPRECATED)
+ .setDeprecatedKey(PARAM_SCM_ACCOUNTS_DEPRECATED, "6.0")
.setDeprecatedSince("6.1")
.setExampleValue("myscmaccount1,myscmaccount2");
createParam(Param.PAGE)
.setDescription("1-based page number")
.setExampleValue("42")
- .setDeprecatedKey("pageIndex")
+ .setDeprecatedKey("pageIndex", "5.2")
.setDefaultValue("1");
createParam(Param.PAGE_SIZE)
.setDescription("Page size. Must be greater than 0.")
.setExampleValue("20")
- .setDeprecatedKey("pageSize")
+ .setDeprecatedKey("pageSize", "5.2")
.setDefaultValue(String.valueOf(defaultPageSize));
return this;
}
createParam(Param.PAGE)
.setDescription("1-based page number")
.setExampleValue("42")
- .setDeprecatedKey("pageIndex")
+ .setDeprecatedKey("pageIndex", "5.2")
.setDefaultValue("1");
return this;
}
createParam(Param.PAGE_SIZE)
.setDescription("Page size. Must be greater than 0 and less than " + maxPageSize)
.setExampleValue("20")
- .setDeprecatedKey("pageSize")
+ .setDeprecatedKey("pageSize", "5.2")
.setDefaultValue(String.valueOf(defaultPageSize));
return this;
}
return createParam(Param.SORT)
.setDescription("Sort field")
- .setDeprecatedKey("sort")
+ .setDeprecatedKey("sort", "5.4")
.setDefaultValue(defaultValue)
.setPossibleValues(possibleValues);
}
action.createParam("has_possible_values").setPossibleValues("foo", "bar");
- action.createParam("new_param").setDeprecatedKey("deprecated_param");
- action.createParam("new_param_with_default_value").setDeprecatedKey("deprecated_new_param_with_default_value").setDefaultValue("the_default_string");
+ action.createParam("new_param").setDeprecatedKey("deprecated_param", "6.3");
+ action.createParam("new_param_with_default_value").setDeprecatedKey("deprecated_new_param_with_default_value", "6.2").setDefaultValue("the_default_string");
controller.done();
}