Forums

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

I cannot edit or remove a post function in JSM workflow

Rúna Loftsdóttir
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!
March 20, 2025

Hi

I want to remove the step "Add a comment to an issue if one is entered during a transition" in the transition when status is changed from from "Wating for support" to "In progress"

All the Post functions are greyed out (see image)

What I am aiming to do is to remove the "Respond to customer" pop up when status changes to "In progress"
JSM post function.jpg

3 answers

3 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 20, 2025

Hi @Rúna Loftsdóttir , I do not believe you can modify the system default PFs.

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 20, 2025

Here is an excerpt from the docs...

Essential post functions

Every Jira transition has the following essential post functions, which are performed in this order:

  1. Set the status of a work item to the linked status of the destination workflow status.

  2. Add a comment to a work item if one is entered during a transition.

  3. Update change history for a work item and store the work item in the database.

  4. Re-index a work item to keep indexes in sync with the database.

  5. Fire a Generic event that can be processed by the listeners. 

     Do not edit or remove this post function. Changing this essential post function will cause unintended behavior for automations and Marketplace add-ons. If you wish to customize the post function events that fire on a transition, consider adding a custom post function and leave the default event alone.

These essential post functions cannot be deleted from a transition or reordered. However, you can insert other post functions between them.

Rúna Loftsdóttir
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!
March 20, 2025

ThanX for this. 
Do you have any suggestions on how I can remove the Respond to customer pop up, when changing status from waiting support to in progress :-) 

I only want to use it when status = Waiting for Customer

\R

Kumar_rajarapu
Contributor
March 20, 2025

In Jira, the "Add a comment" post function is one of the default post functions that occurs during a workflow transition. Unfortunately, these default post functions cannot be removed or edited directly, as they are essential for Jira's core functionality.

However, if you want to customize the behavior, you can consider adding a custom post function using plugins like ScriptRunner for Jira. This allows you to modify or bypass certain actions during transitions.

 

import com.atlassian.jira.component.ComponentAccessor

// Get the current issue
def issue = issue

// Get the current transition ID (specific to your workflow)
def transitionId = transientVars["actionId"]

// Define the ID of the transition where you want to remove comments
def targetTransitionId = 12345 // Replace with the actual transition ID

// Check if this is the target transition
if (transitionId == targetTransitionId) {
// Get the comment manager
def commentManager = ComponentAccessor.getCommentManager()

// Retrieve and delete all comments on the issue
def comments = commentManager.getComments(issue)
comments.each { comment ->
commentManager.delete(comment)
}
}

 

Please try this, it might help you. Thanks!

Like Rúna Loftsdóttir likes this
0 votes
Pasam Venkateshwarrao
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.
March 20, 2025

Hi @Rúna Loftsdóttir 

Welcome to the community,if you want to remove the pop-up screen between the two status.

click on the transition and Edit there in the screen option select None

Screenshot 2025-03-20 at 6.14.44 PM.png

 

Hope this helps

0 votes
Kumar_rajarapu
Contributor
March 20, 2025

hi @Rúna Loftsdóttir ,

 We can't do edit, remove, move up and move down the default Post Functions.

 

Regards,

kumar

Suggest an answer

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

Atlassian Community Events