How to use Custom Jira Story Types with different workflows when integrated into Jira Align using the Jira Connector

Still need help?

The Atlassian Community is here for you.

Ask the community


Summary

In Jira, it is possible to create custom issue types that are handled in Jira Align as ‘story’ types. Business processes may make it necessary to use different workflows and statuses, between the different issue types in Jira. Using multiple Jira workflows with different statuses between the different ‘story’ types within a single Jira project introduces some complexities and limitations in the Jira Align mapping configurations that do not exist if the custom issue types use the same workflow and statuses as those applied to Stories.

Due to this the recommended practice is: Within a single Jira project, use the same workflow for both the default and custom story types.

This article discusses the configuration steps and limitations of using different workflows 


Environment

Jira Align


Solution

Jira Configuration

  1. Take note of the Project Name and Key (of the integrated project)

  2. Take note of the Board ID (within the integrated project)

  3. Review and take note of the IDs for the Epic, Story & Sub-task issue types (as used in your Jira Project)
    - check in Settings > Issues > Issue types

  4. Review and take note of the Statuses and Status IDs used in the Workflow for the Story issue type
    - check in Settings > Issues > Workflows and Settings > Issues > Statuses

  5. Either identify an existing but different workflow or configure a new set of statuses and a new workflow that will be used by the new custom issue type
    - use Settings > Issues > Workflows and Settings > Issues > Statuses

  6. Take note of the names and IDs of the statuses used in this workflow
    - check in Settings > Issues > Statuses

  7. Create the new custom issue type (as a standard issue type), make sure it is related to the scheme for your project and has the correct workflow assigned.
    - use Settings > Issues > Issue types and Settings > Issues > Workflow Schemes

  8. Take note of the ID for this new custom issue type
    - check in Settings > Issues > Issue types

Jira Align Configuration

  • When reading this section, references to Jira Step n, mean steps in the above section, references to Step X:n, mean steps in the Jira Align sections.

  • In Jira Align, some of the configuration pages refer to Jira Statuses as Jira States

  • For ease of reading this has been split into separate expandable sections covering different areas of Jira Align.

A: Add the new Jira Issue Type into Jira Align
  1. Go to Settings/Administration > Platform > Dropdowns

  2. In the Dropdown box select Story Type

  3. In the New Value box enter a name that matches with the new issue type created in Jira Step 7

  4. Click Add followed by Save Dropdown

  5. Go to Settings/Administration > Jira Settings > Custom Issue Types

  6. Click Add (which creates a new row)

  7. In the new row:

    1. enter the Issue Type ID from Jira Step 8

    2. chose the Story Type to match that created in Step A:3

    3. make sure the correct connector is selected

  8. Click Save

B: Create and enable a Process Flow in Jira Align to Match the possible statuses of all the story level issue types used in Jira the Jira Project
  1. For New Navigation: Open Solution Room > More Items > Process Flows (Value Steams) - For Old Navigation open Solution > Manage > Process Flows (Value Steams)

  2. Click +Add Process Flow

  3. In the Level field, choose Story

  4. Chose the correct Program

  5. Fill in a Name and Team Description

  6. Enabling the Map to State toggle is optional, but does change the behaviour (see the Usage Recommendations and Limitations section below)

  7. Click Save

  8. Select the Process Steps tab

  9. Add one process step for each story level status identified in Jira Step 4 and Jira Step 6 (in effect covering all of the statuses for all of the story types in the same project).

  10. It is strongly recommended to have a naming convention for the Process Steps that clearly identifies which Process Step is associated with which story type.

  11. If Map to State is enabled, then this will result in some states being connected to more then one process step

  12. Adjust the order of Process Steps as required (in the example image shown below, any Process Steps with CR in the name, were Process Steps to be mapped to Jira statuses for a custom issue type called Change Requests, those without CR were for standard stories)

  13. Click Save and Close

  14. Go to Settings/Administration > Details Panel Settings

  15. Chose the correct Portfolio and a Work Item of Story

  16. Enable the Process Step toggle in the Active column and click Save

C: Configure/Check the setting for the Jira to Jira Align Project and Board mappings
  1. In Settings/Administration > Jira Settings > Jira Setup > Issue Types, make sure that the issue types for Epics, Stories & Sub Tasks match those noted in Jira Step 3

  2. In Settings/Administration > Jira Settings > Manage Projects, make sure that the Jira Project (from Jira Step 1) is configured and linked to the correct Program

  3. In Settings/Administration > Jira Management, make sure that the Jira Board (from Jira Step 2) is configured and linked to the correct, unique Team

D: Configure the Status and Process Step associations
  1. Open Settings/Administration > Jira Setup > State Mapping (tab)

  2. Set the Type dropdown to Story

  3. Make sure that all of the Statuses noted in Jira Step 4 and Jira Step 6 are mapped to a valid state

  4. Go to Administration > Jira Settings > Manage Projects > Manage Custom Fields

  5. Under Sync Process Steps with Jira States change the Level to Stories

  6. Set the Process Flows field to that named in Step B:5

  7. For each of the Jira Statuses noted in Jira Step 4 and Jira Step 6 configure a connection to the correct Process Step. The following image shows the Jira Statuses used with the example of setting up a custom issue type for Change Requests. In addition to those entries shown in this image, the Jira Statuses for the standard story type were also configured but not shown as in our test environment there are hundreds of Jira Statuses in this list and you only need to configure those used in the same Jira project

  8. Click Update Steps and then close the pop-up page

  9. In Settings/Administration > Jira Settings > Manage Projects locate the Jira Project from Step C:2 and click the State Mapping link for that project

  10. Make sure the Process steps mappings toggle is enabled and Work item type is set to Story (or if using an old version of Jira Align that the State / Process Step (green box) is set to Process Step with the Work Item type of Story)

  11. Configure each Process Step to connect to the correct Jira State (Status) based on the details noted in Jira Step 4 and Jira Step 6. The below images continues with the example of configuring a custom issue type for Change Requests

  12. Click Preload and update (or Update)and then close the pop-up page

As a recommendation, also ensure that a standard  Process Step configuration is implemented for the mappings of Jira Epics to Jira Align Features

Usage Recommendations and Limitations

  • If the Jira story and custom issue types use different workflows and statuses from each other, then Process steps MUST be used in Jira Align. If configured for just State Mappings, then updates to Jira Align States (without using a Process Flow) will not be possible for both issue types as a Jira Align State for a story type cannot be mapped to more than one Jira Status

  • As the State field in the details of a Story cannot be hidden from a Jira Align user, team members will need to be trained to only make changes to the operational state of a story by adjusting the Process Step (they should never change the State)

  • When choosing a Process Step, team members need to be aware of which issue type they are adjusting and only choose process steps for that issue type - this is why it was recommended to use a clear naming convention for the Process Steps in Jira Align step B:10

  • If a Jira Align user accidentally chooses a Process Step that is linked to a different issue type, then the change will not sync to Jira and the audit log will show a Jira Align State to Jira Status Error

Jira Align State to Jira Status Error: For the Jira issue’s current status (nnnnn), a Jira transition to map from an Jira Align State (nnn) to Jira Status (nnnnn) could not be found. Please check the Jira Align State to Jira Status mappings.

  • The following table shows how the Map to State setting (Jira Align step B:6) changes the behaviour 


User Action

Map to State

Related State/Process Step Changed

Issue Status Synchronized to Jira

Audit Log Error

State of Story or Custom Story changed in Jira Align

Disabled

(error) Process Step NOT changed

(error) Jira Status NOT changed

No Error

State of Story or Custom Story changed in Jira Align

Enabled

(question) Process Step changed to the 1st Process Step (for the chosen State) from the order configured in Jira Align step B:12 (this may be an invalid Process Step for the issue type)

(question) if the Process Step set is mapped to a valid Jira State for the issue, then the Status in Jira will be changed.

No error if the Process Step is valid for the issue type. If invalid, then the Jira Align State to Jira Status Error will be recorded.

Process Step of Story or Custom Story changed to a valid choice for the issue type in Jira Align

Disabled

(tick) Jira Align State not immediately changed, but after the Jira Status is changed, the next connector sync will change the Jira Align State

(tick) Jira Status is changed

No Error

Process Step of Story or Custom Story changed to a valid choice for the issue type in Jira Align

Enabled

(tick) Jira Align State immediately changed

(tick) Jira Status is changed

No error

Process Step of Story or Custom Story accidentally changed to an invalid choice for the issue type in Jira Align

Disabled

(error) Jira Align State not changed

(error) Jira Status NOT changed

Jira Align State to Jira Status Error

Process Step of Story or Custom Story accidentally changed to an invalid choice for the issue type in Jira Align

Enabled

(question) Jira Align State will be changed, but may be set incorrectly

(error) Jira Status NOT changed

Jira Align State to Jira Status Error


Related Content:

References:

https://community.atlassian.com/t5/Jira-Align-articles/Mapping-States-Steps-and-Statuses-between-Jira-Align-and-Jira/ba-p/1354724

https://confluence.atlassian.com/jirakb/add-new-status-and-steps-to-jira-server-workflows-718835875.html 




Last modified on Feb 23, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.