Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,815
Community Members
 
Community Events
165
Community Groups

Set sprint ID using advanced JIRA Automation

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

5 votes
Answer accepted

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

{
"fields": {
"sprint": 275
}
}

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

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
}
}

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

349 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you