Error "Unable to create issue: priority: This priority is not available for this project." on Jira Align Connector

Still need help?

The Atlassian Community is here for you.

Ask the community


Summary

The message: Error: "Unable to create issue: priority: This priority is not available for this project." is seen in the audit log when the connector tries to create an Epic in Jira from the Feature/Epic in Jira Align.

Environment

Jira Align

Diagnosis

The message: Error: "Unable to create issue: priority: This priority is not available for this project." we see in the audit log, usually means that the Jira connector is not able to find the corresponding default priority for the given Jira project.

Cause

The value under the Administration > Jira Settings > Jira Setup > Custom Fields> Issue Priority Default is used to automatically set a default priority when creating a feature or story in Jira Align as per the following documentation:

Issue Priority Default.
When you create a feature or story in Jira Align, it will create a feature or story issue type in Jira. This is a default priority that the connector will set on the newly-created issue in Jira. This is a one-time sync upon creation; editing the feature or story in Jira Align will not update the priority in Jira. The priority also does not sync to Jira Align when a feature or story issue type is first created in Jira.

Solution

  1. Go to Administration > Jira Settings > Jira Setup > Custom Fields > Issue Priority Default and verify what is the value.

  2. Check what are the available ‘Priorities' of the 'Priority Scheme’ associated with the Jira Server and/or project settings.

  3. Make sure that there is an equivalent Jira Priority for the default value set in Jira Align (for example a value of ‘3' in Jira Align corresponds to a 'Medium’ priority in Jira).

To know which value corresponds to which priority, you can over the ‘edit’ link of the priority in the Jira Administration as shown below:

You can also use the Jira REST API to get the information (/rest/api/2/priority endpoint).
For example:

curl -L -X GET 'https://alignsupport.atlassian.net/rest/api/2/priority' \
--header 'Accept: application/json' \
--header 'Authorization: Basic {token}'

Response:

[
    {
        "self": "https://alignsupport.atlassian.net/rest/api/2/priority/1",
        "statusColor": "#d04437",
        "description": "This problem will block progress.",
        "iconUrl": "https://alignsupport.atlassian.net/images/icons/priorities/highest.svg",
        "name": "Highest",
        "id": "1"
    },
    {
        "self": "https://alignsupport.atlassian.net/rest/api/2/priority/2",
        "statusColor": "#f15C75",
        "description": "Serious problem that could block progress.",
        "iconUrl": "https://alignsupport.atlassian.net/images/icons/priorities/high.svg",
        "name": "High",
        "id": "2"
    },
...
]

The following community article: Associating priorities with projects will give further information on the Jira Priorities if needed.

Last modified on Feb 23, 2024

Was this helpful?

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