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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,325
Community Members
 
Community Events
184
Community Groups

Automation action to clear custom field value using advanced json editing

Hello there.  I'm writing an automation rule that attempts to unset the value of "Parent Link" on an Epic based on the status of the parent.  All of the conditional logic for this works fine - I'm having a problem with actually unsetting/clearing the value of the field.

This was working just fine a few weeks ago - without making any config changes it has stopped working, so if the deprecation changes around parent, parent link, and epic link were finally made I'd like to know more about them.  I've tried modifying the "parent" field as well but have the same issue as below.

I've tried multiple ways of setting the field value to null or empty. The audit log response I'm now getting is "Could not find issue by id or key. (parent)". Isn't there a dirt-simple way to clear a value from a field?  Feel like I'm missing something obvious.

 

```

{"fields": {"Parent Link":{"value": null}}}

{"fields": {"Parent Link": null}} //this used to work until recently, now gives the error above
{"fields": {"Parent Link": ""}}
{"update": { "Parent Link" : { "set": {"value": null}}}} //parser seems to complain about invalid operations names

```

If you've navigated this in the last few weeks I'd love to learn what needs to change in the approach. Pulling from the documentation on advanced editing doesn't seem to provide much insight here.

2 answers

1 accepted

1 vote
Answer accepted
Karim ABO HASHISH
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 15, 2023

hi @Patrick Davis 

Could you please try the below syntax. i tested it on my side and it worked.

{

    "fields": {

        "parent": null  

    }

}

Let me know how it went for you.

Cheers,

Karim

Interesting, thanks yes that's the right answer here.  Tried this a few weeks ago and it didn't seem to function properly, but it's clearly working now.

Karim ABO HASHISH
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2023

hi @Patrick Davis 

You are most welcomed. Glad it worked for you.

Cheers,

Karim

@Karim ABO HASHISH I tried the above and got error:  Not valid JSON

I am using Cloud version of Jira

the syntax is well-formed. may want to check for any stray commas or other characters

Karim ABO HASHISH
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2023

hi @Jen Elam 

Could you please provide a screenshot for the configuration to better assist you with the issue.

Cheers,

Karim

Suggest an answer

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

Atlassian Community Events