Custom Field JSON works On Change Value not On Issue Create?

Ron Koudijs August 2, 2021

Why does below JSON not work On Issue Create, while it does work On Change Value?

{ "fields": { "summary": "Use my custom field: {{MyField}}" } }

2 answers

0 votes
Bill Sheboy
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.
August 2, 2021

Hi @Ron Koudijs 

  • Would you please clarify what problem you are trying to solve?
  • And, when you note it does not work on issue create, what do you observe happening?

I note you posted this question in the automation area; are you doing this with an automation rule?  If so, there are known race-track issues with issue create triggers.  One work-around is to re-fetch the issue before processing to ensure the data is present.  For example:

  • trigger: issue created
  • action: re-fetch issue
  • ...continue with your rule processing

 

Best regards,
Bill

Ron Koudijs August 2, 2021

Hi @Bill Sheboy 

Yes, I am trying to change the summary field with automation. For the summary I want to use custom fields. I tested the JSON code with a "When value changes for" + "Edit issue fields". That works fine. But the same JSON code with a "When issue created" does not give a result.

I am going to try your re-fetch suggestion.

Thanks for helping.

Regards,

Ron

Like Alexander Pappert likes this
Ron Koudijs August 9, 2021

I found the reason of my problems. We are using Dynamic Forms from Devinity. The issues I am having trouble with are created before the Dynamic Forms is filled by the customer. Deviniti suggest a work around with a time in status" trigger. I'm still figuring out how to get this (SLA?) tigger to work. To be continued ;-)

Like Bill Sheboy likes this
0 votes
Alexander Pappert
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.
August 2, 2021

on issue creation, the custom field is not filled/existing. thats why ist doesn't work there

Ron Koudijs August 2, 2021

So it is impossible to automate based upon custom fields? Strange! What is the work around? Can I automate / create a trigger "just after creation"?

Alexander Pappert
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.
August 5, 2021
Alexander Pappert
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.
August 5, 2021

or, as @Bill Sheboy wrote

action: re-fetch issue

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events