Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Smart Value for Parent Issue's worklog

Hi,

I am trying to get the "Worklog" value from a parent ticket to be added to a linked issue's "Worklog"

{
"update": {
"worklog" : [
{
"add": {
"timeSpent" : "2d"
}
}
]
}
}
}

I need the smart value for the PARENT ISSUE'S WORKLOG as value for the "timeSpent". 

I have already tried the following:

  • "timeSpent" : "{{issue.parent.worklog.timeSpent}}"
  • "timeSpent" : "{{issue.parent.worklog}}"

Anyone knows the answer?

Regards,

Nawaaz

1 answer

Hi @Nawaaz SOHAWON 

Automation doesn't load all the issues in the tree (issue to parent to links...) into the scope at run time.  Instead, I believe that you will first need to get at the parent issue, perhaps using a Branch statement, and then store the value in a Create Variable.  Then you could use that variable's smart value in the child issue.

Best regards,

Bill

Hello @Bill Sheboy ,

Thanks for your response.

Actually I managed to pull the trigger issue's worklog time spent by using this value:

{
"update": {
"worklog" : [
{
"add": {
"timeSpent" : "{{triggerissue.worklog.timeSpent}}"
}
}
]
}
}
}

And it works perfectly.

Regards,

Nawaaz

Like Bill Sheboy likes this

Suggest an answer

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

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