Forums

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

Transition and Time Spent with Automation

Allen Semerdjian June 9, 2023

How are you able to transition an issue that requires a validation Time Spent within Automation.

My JSON skills aren't great but am trying. Picked a few examples from Advanced field editing using JSON

A few of the fields:

     Screenshot 2023-06-09 031519.png   Untitled.png

tried Transition Issue w/ JSON :


       Screenshot 2023-06-09 032749.png

{
"update": {
"customfield_11200": [{
"add": {"id":"1"}
}]
}
}

        Screenshot 2023-06-09 032718.png

also tried to execute directly through JSON.

   2.png

{
"fields": {
{issue.Time Spent("1")}
{issue.customfield_11200("10001")}
}
}

however, that fails also

3.png

Thanks,

1 answer

1 accepted

1 vote
Answer accepted
Mark Segall
Community Champion
June 9, 2023

Hi @Allen Semerdjian - Time Spent is part of a larger work log so a bit more complex than just filling in Time Spent.  I believe you need something like this:

{
  "update": {
    "worklog" : [
      {
        "add": {
          "timeSpent" : "5m"
        }
      }
    ]
  }
}

  

Allen Semerdjian June 9, 2023

Hello @Mark Segall -   It Worked..! thank you. thank you

Like Mark Segall likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events