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

Adding custom actions with screens in Jira Cloud

Benjamin Peikes August 19, 2019

There are often times when we want to offer our developers specific actions, which we use to enforce and simplify workflow. The way that we typically do that now is to add a transition which does not change the status, but has post actions in Scriptrunner which do any custom work.

This seems like a hack though. Some of the issues we have with this are:

1) You can not reject the "action" if the user does not provide certain fields because Scriptrunner in cloud cannot reject a transaction because it's async

2) You can't have forms for the action which contains fields which are not associated with the ticket. This results in us creating custom fields that the ScriptRunner scripts have to clear when the action is done. For example: We have our own "Create Linked Issue" transition for our projects which are not Service Desk. To create this, we needed to add a "NewIssueAssignee" field and "NewIssueLinkType" field, which the script can use to create the new ticket, but then it needs to clear them on the original ticket. This seems like a big hack, plus, because it's not necessarily atomic, you could have an issue where two people running the same action on the same ticket have colliding data. (i.e. one removes the other ones changes, or uses the wrong values in the script).

How do other people create "actions" for their users?

1 comment

Comment

Log in or Sign up to comment
Rich Scire August 3, 2022

Hi,

 

how can an action not change the status. Do you mean that the new transition starts and ends at the same status? If not, how do you create an action that doesn't change the status?

Can you show the example of your Create Linked Issue action?

Thanks!

TAGS
AUG Leaders

Atlassian Community Events