I am creating bulk issues using jira rest and I am not able to set transition in that call.
https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-issue-bulk-post
But the doc says we can set transition during bulk creation.
attaching sample response from docs.
Hello @Arun Chittem ,
If I understand correctly you are able to bulk create issues using REST API but you cannot transition them. Is this correct?
If this is correct then can you kindly provide more details?
Specifically, we would like to know:
Actually, it would be best if you could run the REST API call in a terminal using Curl and paste the result in here making sure to remove the sensitive data (make sure to replace your real emails address, api token and site name with XXXX or random letters).
Cheers,
Dario
Hi @Dario B
Thanks for the reply,
The below in the curl request:
curl --request POST \
--url 'https://team-1585739298180.atlassian.net/rest/api/latest/issue/bulk' \
--user '<<email>>:<<api token>>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"issueUpdates": [
{
"update": {
"worklog": [
{
"add": {
"timeSpent": "7m",
"started": "2019-07-05T11:05:00.000+0000"
}
}
]
},
"transition": {
"id": "31"
},
"fields": {
"project": {
"key": "JA"
},
"summary": "Project ",
"issuetype": {
"name": "Story",
"subtask": false
},
"customfield_10028": "JMU-24",
"priority": {
"name": "High"
},
"timetracking": {
"remainingEstimate": "5",
"originalEstimate": "10"
},
"duedate": "2011-04-11T00:00:00.000Z"
}
},
{
"update": {
"worklog": [
{
"add": {
"timeSpent": "7m",
"started": "2019-07-05T11:05:00.000+0000"
}
}
]
},
"transition": {
"id": "31"
},
"fields": {
"project": {
"key": "JA"
},
"summary": "Project ",
"issuetype": {
"name": "Story",
"subtask": false
},
"customfield_10028": "JMU-24",
"priority": {
"name": "High"
},
"timetracking": {
"remainingEstimate": "5",
"originalEstimate": "10"
},
"duedate": "2011-04-11T00:00:00.000Z"
}
}
]
}'
RESPONSE:
So, the issues are being created, but the transition is not happening.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same query. Can you please help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Arun Chittem and @Pawan_Namagiri ,
I have created the below request to get this bug fixed:
Please vote for the above bug ticket and set yourself as a watcher so that you will be notified in case of any update/progress. The bug will be addressed according to the Atlassian Cloud bug fixing policy.
As a temporary workaround, you can transition the issues after they have been created, using the Transition issue (POST /rest/api/3/issue/{issueIdOrKey}/transitions) endpoint.
Cheers,
Dario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Added my vote to the issue !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> As a temporary workaround, you can transition the issues after they have been created, using the Transition issue (POST /rest/api/3/issue/{issueIdOrKey}/transitions) endpoint.
Will this workaround apply when each issue have different transition id value?
Scenario:
1. Bulk create issues using REST API. Each issue may have different transition id value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello! Is there any solution to handle bulk update issue transition? Or handle it while performing bulk create an issue on Jira? For me, it's strange why a company like Jira has so many gaps and can't create a normal REST API for us, developers, who try to implement features related to Jira. It's not the first time when I faced JIRA REST API troubles because some data that comes back from a response are limited or you can't perform some operation, or there is simply no endpoint for your functionality, although logically, it should be, such as bulk updating transitions for issues
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.