Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Cannot set to empty a value using Edit field advanced

Hi,

I'm trying to set a custom field to empty using the Jira Automation rule "Edit field, advanced". The custom field is Parent Link, also customfield_12100. I can retrieve its info as I previously check a condition like this {{issue.customfield_12100.data.issueType.id}} and it works.

I get the JSON format using the jira API rest and this is it (it's within fields):

"customfield_12100": {
"hasEpicLinkFieldDependency": true,
"showField": true,
"data": {
"id": 96904,
"key": "JOE-32",
"keyNum": 32,
"summary": "JOE Saga test1",
"projectId": 12322,
"issueType": {
"id": "10649",
"iconUrl": "/secure/viewavatar?size=medium&avatarId=17582&avatarType=issuetype"
}
}
}, 

The goal is to set it to Empty so that custom field does not have a value. I've tried with the update + set method and also fields as described in the following link with no success: https://support.atlassian.com/jira-software-cloud/docs/advanced-field-editing-json/

I'm doing it with an Advanced Field edit because there's a bug and Parent Link is not a selectable field in the Edit issue action dropdown (see image).
no parent link edit issue.png

Any chance on knowing why I can't do so or how to do it properly?

Thank you.

1 answer

Hi @Sergio Montávez 

Are you using a company-managed (classic) or team-managed (next-gen) project?  I am going to assume Team-Managed for now...

If you want to clear the parent (epic) of an issue (story, task, bug), you can use this JSON:

{
"fields": {
"parent": { "id": null }
}
}

 

Best regards,

Bill

Hi @Bill Sheboy 

I'm using a company-managed project and it didn't work for me. Nevertheless, I'm not interested in changing the Epic, I want to change a different parent, it's a custom issue type at the same level as Epics, so in child issues I have to reference it as Parent Link, not Epic Link, nor "issue is Parent of" by linking issues.

 

Thank you!

Hi @Sergio Montávez 

I suggest using the method described in this article to learn if your field has a smart value which can be accessed by automation rules:

https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/

If so, it may reveal a different name and structure in the JSON than what you expected when trying the edit.

Thanks for the link to the doc! Unfortunately, I already tried that out and couldn't do anything useful with it. As I said, I can retrieve info from this custom field but nothing more than that.

expand names.png

 

I also checked the edit meta with no success: https://<yourinstanceurl>/rest/api/3/issue/<issuekey>/editmeta 

edit meta.png

@Sergio Montávez at this point I am unclear what else to try.  As you are the site admin of a paid license for Jira, you should be able to create a support ticket to Atlassian to see if they have ideas: https://support.atlassian.com/contact/#/

If you learn anything from them that helps please consider posting the information back here so the rest of the community can benefit.  Thanks!

Hi again @Bill Sheboy 

I submitted a ticket to their support team at the same time that I posted this topic. Conversations are already going but there's no conclusion yet. Once I have anything final I'll post it here.

Thank you for being involved!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
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