Forums

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

Is there a way to update the Advanced section of Automations with an API

Christopher Gordon June 27, 2023

We use Jira Automations to set a FixedVersion automatically. We have many Jira automation rules that need to be updated with the same string representing the fixedVersion for the current sprint.  

We would like to automate changing out the fixed version, which is represented as a string in an Automation.  How can we automate updating this string in many rules? SomeProject v23Q2-6 

{
"update":{
"fixVersions": [
{
"add": {
"name":"SomeProject v23Q2-6"
}
}
]
}
}

 How can we accomplish this? Can we define a custom smart value maybe?  

 

{
  "update":{
    "fixVersions": [
      {
        "add": {
          "name":{issue.customField_CurrentFixedVersion}   
        }  
      }
    ] 
  }
}

And a bulk Update on that field at the start of the sprint?  Any thoughts or critiques?  

1 answer

1 accepted

0 votes
Answer accepted
Christopher Gordon July 6, 2023

We accomplish our goal to be able to have control over a variable that is used when running an automation.

 

  • Create hidden field in Jira CustomCurrentFixedVersion
  • use smart value of {{issues.CustomCurrentFixedVersion}} in automations
  • Bulk Update Jiras to set the CustomCurrentFiexedVersion when we move sprints
  • Add Jira Automation for setting the CustomCurrentFIxedVersion (this is still a string and manual to change)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events