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
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events