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.
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?
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.