Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Ask Subtask summary during transition where subtask is created by postfunction

BenoitP
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.
April 22, 2020

Hi,

Using scriptrunner for JIRA on server version, I have configured a postfunction to trigger the creation of a subtask from a transition in my workflow. This works fine.

However, I would like to setup a popup screen to ask the user to fill the subtask summary. I know how to configure a screen for a transition but I have no clue how to expose the subtask summary field in this screen (if possible or sensible at all). Should I configure a custom field in this screen that I copy later in the subtask summary via a custom script in the scriptrunner transition?

Thanks in advance for your advises...

Best

1 answer

0 votes
Nic Brough -Adaptavist-
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.
April 22, 2020

There's no way to do this - post-functions execute after the data for a transition has been gathered and validated.  They have no connection to the UI.

Your suggestion of a "sub-task summary" field on the parent issue, exposed during transition and copied later is probably the easiest way to achieve this.

Thorsten Letschert _Decadis AG_
Atlassian Partner
April 24, 2020

+1 for Nic's approach. I'd put that "sub-task summary" on the transition screen only, use it for creating the sub-task and delete its value afterwards.

Suggest an answer

Log in or Sign up to answer