Why the transitions fields for my projects are not visible and are not reacting via API?

Gabriel Korcsmaros May 15, 2024

I am trying to interact with the fields of my project, for example rest/api/2/issue/BETA-24/transitions?expand=transition.fields. However, they are not visible and I am not able to interact with it. If I would like to change the status of an issue via the API, it is not working. The issue is newly created issue type by me, with a corresponding new (but simple) workflow. I would like to achieve that when I update an issue in my tool it gets updated also in JIRA. When I update it in JIRA it gets properly propagated in my tool by the webhook.

2 answers

0 votes
Gabriel Korcsmaros May 16, 2024

Hey @Trudy Claspill 

You are correct, BETA-24 is an issue key.

Yes, I created a screen for the resolutions, so once you would close an issue you need to select a (defined) resolution.

I would like to close the issues also via the API into that resolutions. However, if I am viewing the "expand=transition.fields" they are not visible. Do I need to change some permissions to be able to view them or allow them?

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 15, 2024

Hello @Gabriel Korcsmaros 

Welcome to the Atlassian community.

Am I correct that "BETA-24" is the issue key for an existing issue that you want to transition?

The API call that you have shown should be returning to you all the transitions available for the issue, plus the fields on any screens that you have associated with each of those transitions. Have you associated screens with any of the transitions?

If you want to actually execute a transition for the issue, you have to provide the ID of the transition that you want to execute. That is provided in the request body that you supply with the API call, as described here:

https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-issueidorkey-transitions-post

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 19, 2024

I figured it out, finally. Your API call is incorrect by one letter. There needs to be an "s" on "transition"

rest/api/2/issue/BETA-24/transitions?expand=transitions.fields

 

Gabriel Korcsmaros May 21, 2024

Hey @Trudy Claspill !

Thanks for your help! I figured it out, eventually. The problem was that I wanted to move the issue from open state into closed. But from open state the transition did not exist...only from "In progress". That is why I could not see the transitions.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events