Transition Jira Issue

Updated: Feb 1, 2023

This example shows you how to transition a Jira issue using DataPipeline. One of the transition is to update status from To Do to In Progress.

You can look up the IDs to transition by following the Look Up Jira Transition IDs example.

Java Code Listing

package com.northconcepts.datapipeline.examples.jira;

import com.northconcepts.datapipeline.jira.client.JiraService;

public class TransitionJiraIssue {

    private static final String JIRA_DOMAIN = "JIRA_DOMAIN";
    private static final String JIRA_USERNAME = "USERNAME";
    private static final String JIRA_API_KEY = "API_KEY";

    private static final String JIRA_ISSUE_ID = "ISSUE_ID";
    private static final int TRANSITION_ID = 123;
    public static void main(String... args) {
        JiraService service = new JiraService(JIRA_DOMAIN, JIRA_USERNAME, JIRA_API_KEY);
        service.transitionIssue(JIRA_ISSUE_ID, TRANSITION_ID);

Code Walkthrough

  1. JIRA_DOMAIN is your Jira domain e.g
  2. JIRA_USERNAME is your Jira username.
  3. JIRA_API_KEY is your Jira token which you can easily create in
  4. Create JiraService using above properties.
  5. For given JIRA_ISSUE_ID , transition will happen to TRANSITION_ID.
  6. JiraService.transitionIssue(String issueId, int transitionId) method is used to update transition for given jira issue.
Mobile Analytics