Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Reading the parent key of a deleted issue in a ScriptRunner script listener in Jira Cloud

Asimetrix Atlassian
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2025

I need to update a custom field value in the parent of a deleted issue in the Issue Deleted script listener.

I've tried almost all but no results yet.

Thanks,

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Carlos Garcia Navarro
Community Champion
October 5, 2025

Hi @Asimetrix Atlassian ,

Welcome to the Community! Can you  please share more details about the script? What's the custom field in the parent issue that needs to be updated? Does Jira let you edit that field if you try to update it manually? Are you getting any errors?

Asimetrix Atlassian
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 7, 2025

Thanks a lot... I need to update the count of child items of the parent whenever a child is created or deleted.

I could easily make it in the creation, but I can't find a way to access the parent key of a deleted issue (issue.getParentObject() or any other way) as to re-count.

I know how to easily do it via automation rules, but this client wants to use ScriptRunner as much as possible.

Thanks in advance,

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events