Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to develop some functionality, which technology to use? Event listener/fragment/postfunction?

Mouna Hammoudi
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.
August 22, 2023

Capture.PNG

 

I need to develop the following functionlity for the issues of type superfeature. If the issue has components and has fix versions and the components start with WF,EF,... then I need to create a list of subissues of type feature for each of the issue's components as shown in the above diagram. Which technique using scriptrunner should I use? 

I would like all of this to happen after I click on a button so which technology should I use?

  • Event listener 
  • fragment/REST endpoint 
  • Postfuncton/validator 

1 answer

1 vote
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.
August 25, 2023

The best way to do this in Jira is to use as much of the standard functionality as possible.

  • Create a "super feature" issue type, and configure it differently to the other issue types
  • Make the component field mandatory
  • Make the fix version field mandatory
  • The version has to be in the list of versions, you can't add a version that is not listed

For the rest of the process (all the sub-task stuff), you'll need to use Scriptrunner to create a post-function or listener that can do all of that.

Suggest an answer

Log in or Sign up to answer