The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation: Set a sprint from a linked issue

Tobias Magnus (ext)
Contributor
September 18, 2020

Hello together,

I am trying to copy the sprint value to a new issue, which is linked to a certain task.

I tried to used a smart value:

{{masterSprint}} = {{issue.sprint}}

Later in the rule I try to set it via "Edit Issue / Additional Fields".

"fields": {
    "epic link": "{{epicMasterLink}}",
    "fixVersions": [{
        "add": "{{masterFixVersion}}"
    }],
    "Sprint": [{
        "add": "{{masterSprint}}"
    }]
}

I always run into this error:

Number value expected as the Sprint id.


The same error occur when trying to set the sprint as an array. 

I also tried to set the id of the sprint, "18" and get the same error. 

Don't know how to fix.

Thanks for your help.

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Dave LIAO
Community Champion
September 20, 2020

@Tobias Magnus (ext) - if you want to hardcode a sprint ID via Automation, remove the quotes and the value will be applied. 

Regarding the automation you're trying to make, are you trying to do something like this?

  1. User creates new issue.
  2. User links new issue to an existing issue that is part of Sprint A.
  3. Automation sets the sprint of the issue to Sprint A.
Tobias Magnus (ext)
Contributor
September 22, 2020

Hi @Dave LIAO  you are right, this is the scenario that I was working with.

Meanwhile I found out, that I could use {{issue.sprint.id}} to set the sprint, so it works for me.

Like # people like this
Dave LIAO
Community Champion
September 22, 2020

Great, glad you figured it out! ^_^

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events