Overwrite number value from customfield to another - Automation

Javier Lapeña October 18, 2023

Dear colleagues,

I'm trying to overwrite via automation an specific customfield (numeric type) with number value from another system field.

I made several tries:

as update-set

{
"update": {
{customfield_47204}: [{
"set": "{issue.customfield_10008}" }]
}

as JsonNumber value

{
{customfield_47204}: {{customfield_10008.value.asJsonNumber}}
}

as a regular number customfield 

 

image.png

Thank you in advance for any hint

Regards

1 answer

1 accepted

2 votes
Answer accepted
Esteban Diaz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2023

Hi @Javier Lapeña , 

Why don't you try using the simple Edit componen to copy values from one system field to a custom field??

 

something like this works perfectly...

 

points.PNG

 

Cheers, 

Esteban

Javier Lapeña October 18, 2023

Hi @estebandiaz 

Thanks for your comment.

The issue is that the action required is just the opposite.

Copy from customfield (new field created ad hoc and doesn't appear on the list) to Story Points field.

Regards

Javier

image.png

Esteban Diaz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2023

@Javier Lapeña ... are you using Jira Cloud? or Server / DC ?

'cos I've tried backwards ... and it worked for me ... but I'm using Jira Cloud...

points2.PNG

Javier Lapeña October 19, 2023

@Esteban Diaz I guess you have hit the nail on the head.
Maybe, this is the reason. I'm under our own server/dc.

Anyway, if my unique solution it's manage with Json clause, I was wondering if my tries are correct.

Thanks once more.

Esteban Diaz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 19, 2023

Hi @Javier Lapeña , 

This other way just worked for me ... 

 

{
"fields": {
"Story Points": {{issue.customfield_10050}}
}
}

 

I know I'm on Cloud... but give it try 😉

 

Cheers, 

Esteban

Javier Lapeña October 23, 2023

Thanks @Esteban Diaz 

That works. 

I was getting crazy and it's more simple than I expect.

Thanks for opening my eyes

Like Esteban Diaz likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events