Search in sources :

Example 1 with IssueInput

use of com.atlassian.jira.rest.client.api.domain.input.IssueInput in project tutorials by eugenp.

the class MyJiraClient method createIssue.

private String createIssue(String projectKey, Long issueType, String issueSummary) {
    IssueRestClient issueClient = restClient.getIssueClient();
    IssueInput newIssue = new IssueInputBuilder(projectKey, issueType, issueSummary).build();
    return issueClient.createIssue(newIssue).claim().getKey();
}
Also used : IssueInput(com.atlassian.jira.rest.client.api.domain.input.IssueInput) IssueRestClient(com.atlassian.jira.rest.client.api.IssueRestClient) IssueInputBuilder(com.atlassian.jira.rest.client.api.domain.input.IssueInputBuilder)

Example 2 with IssueInput

use of com.atlassian.jira.rest.client.api.domain.input.IssueInput in project tutorials by eugenp.

the class MyJiraClient method updateIssueDescription.

private void updateIssueDescription(String issueKey, String newDescription) {
    IssueInput input = new IssueInputBuilder().setDescription(newDescription).build();
    restClient.getIssueClient().updateIssue(issueKey, input).claim();
}
Also used : IssueInput(com.atlassian.jira.rest.client.api.domain.input.IssueInput) IssueInputBuilder(com.atlassian.jira.rest.client.api.domain.input.IssueInputBuilder)

Aggregations

IssueInput (com.atlassian.jira.rest.client.api.domain.input.IssueInput)2 IssueInputBuilder (com.atlassian.jira.rest.client.api.domain.input.IssueInputBuilder)2 IssueRestClient (com.atlassian.jira.rest.client.api.IssueRestClient)1