Set sprint ID using advanced JIRA Automation

Simon Geer January 15, 2020

I am trying to set sprint id using JIRA automation to assign a card to a specific sprint in the future that isn't the "next sprint".

I have found sprint ID by going to to /rest/api/2/issue/<issueNumber>?expand=names, as well as inspecting element in dev tools. I have also confirmed customfield id for Sprint.

This is the advanced JSON I am using:


{
"fields": {
"customfield_10010":"275"
 }
}

And this is the error I am seeing in Audit log:
Error editing issuesCRM-10274 (Number value expected as the Sprint id.)

Any ideas as to why I am getting this error?

 

2 answers

1 accepted

6 votes
Answer accepted
Simon Geer February 11, 2020

If anyone gets stuck on this in the future I figured it out...

{
"fields": {
"sprint": 275
}
}
Victor Garcia Garcia April 24, 2020

if you need to assign a text value in another field (like a text customfield), you may use

{
"fields": {
"customfield_10001": "xxx"
}
}
Like # people like this
0 votes
Deleted user October 6, 2021

I was unable to get the 'Single-select custom field' working according to this article.

I ended up re-purposing an old sprint we no longer used.

{
"fields": {
"sprint" : 3
}
}

Marc Isikoff September 27, 2022

If you need to create a Story and assign it to a Sprint based on user input (say in Jira Service Management) it's as easy in automation as copying from triggering issue. No need to get it's ID vs it's value.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events