repeat current transition - based on current transition screen field value

i have a transition screen, and it collects a couple of data points from the user. one is an arbitrary text string. the other is an issue selector custom field. the user is choosing an issue from a 'library' project and cloning and/or renaming + linking it to the current issue - the clone/link is achieved via a scriptrunner postfunction, as you can imagine (the rename uses the arbitrary text string as the new name).

I would like to make it easier for the user to repeat this action via something like the 'Create another' checkbox we are all familiar with from the OOTB create issue screen.

 

So I add a custom field ("Create Another? Yes") and add it to the transition screen. I can grab the value of that within the existing scriptrunner post function, and it would be swell if I could re-run the current transition - complete with the existing transition screen - so the user could quickly cline+link a bunch of issues...know what I mean?

1 answer

0 votes
Steven Behnke Community Champion Nov 04, 2017

Just a suggestion, it'd likely be easier to use the Script Fragments functionality and a REST endpoint to add a custom form with all your own custom behavior. Tacking custom stuff into the Transitions is easy but limited.

Thanks for the hint @Steven Behnke

I'll look into that. 

 

I will need to make sure I can only show the UI element (e.g. "Create New Linked Library Item") - which is currently shown on the Workflow section of the issue menu and is affected via a circular transition - on certain statuses in the workflow.circular-transition-starts-ends-same-status.png

My comment is pretty unclear...

 

If I am trying to use a fragment/rest endpoint to 'reproduce' a workflow transition screen, can I create a dialog that renders a PCF - Single Autocomplete field that produces a list of Jira issues to select from?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

412 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you