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"
Hi @Rúna Loftsdóttir , I do not believe you can modify the system default PFs.
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:
Set the status of a work item to the linked status of the destination workflow status.
Add a comment to a work item if one is entered during a transition.
Update change history for a work item and store the work item in the database.
Re-index a work item to keep indexes in sync with the database.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi @Rúna Loftsdóttir ,
We can't do edit, remove, move up and move down the default Post Functions.
Regards,
kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.