I would like to update a custom field by value. But this value must be the number of the current sprint. Is this the correct syntax for JSON or should it be different? If yes, could you help me. Thanks in advance.
==================
{
"update": {
"customfield_12810": [
{
"set": "openSprints()"
}
]
}
}
Hi @Oxana Z -- Welcome to the Atlassian Community!
What problem are you trying to solve by doing this?
And...for a question like this, please consider posting an image of your automation rule...or if instead you are calling the REST API directly, describe which method you are calling.
Providing that information will give context for the community to offer suggestions. Thanks!
Kind regards,
Bill
Thank you, Bill
I need to fill in the custom field "Sprint" by value of the current Sprint if field "Team"="my team name."
The rule is very easy.
Thanks you in advance.
Oxana.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for posting those images of the rule.
First thing: it may not be a good idea to automatically add items to the active sprint. That could cause some visibility and other unintended consequence problems.
Next to your rule: your schedule trigger finds the issues that you want to update. That branch is both unnecessary and will not find the current issue. Instead consider this approach:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
not sure if it is possible with JSON but why do not you use the smart value {{sprint.id}} on the field?
Here is the list of all smart values for Sprint: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I undestand, the smart value show the value which already in the field, but in my case I would like to add the value of current in this moment Sprint to the field "Sprint". May be I am wrong?
Thanks.
Oxana.
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.