Forums

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

Jira Script Runner create sub task button on view/edit issue screen

chris.spacagna
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 29, 2018

Hi

I've searched previous posts for this but only found ones from over a year ago which may be irrelevant now so I am asking the question again.

We would like to see if its possible to add new buttons to the edit/view issue screen for creating sub-tasks of a certain sub-task type.

1 answer

1 accepted

0 votes
Answer accepted
Daniel Yelamos [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.
May 30, 2018

Hi Chris.

So, the short answer to this would be "yes, but it might be very very hard".

Long answer:

Our scripted fragments allow you to insert HTML, or JS code in mostly all parts of the JIRA UI, allowing  customisation. In order to do this however, you would need to plan very carefully what you want, because I am not entirely sure on how this would work.  

For example, you go to the edit issue screen and you click that button: what does that do? Does it save your changes? Does it discard them? Does it redirect you to a new page? Or does it open a new frame?

This would need some extensive development.

Cheers!

DYelamos

chris.spacagna
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2018

Thanks Daniel, we would not consider extensive development to put this in so we will not attempt this. Thanks for saving us the time trying to do this.

Daniel Yelamos [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.
May 30, 2018

Hi Chris.

No problem. Would you mind marking my answer as accepted so that other users know this thread has been answered?

Thanks!
DYelamos

Moses Thomas
Community Champion
October 19, 2020

@Daniel Yelamos [Adaptavist]   I  have my own question related to  this 

I want to have a transition  and on this transition should trigger  the  built in  "Create  Sub task"  under the More button in the issue.

Reason when i  use  the built in create sub-task in script runner this just works like clone and it does not meet my requirement. 

When i  have a  parent issue  with custom fields  on the screen  and i  use the same screen when creating a sub-task  from transition ,  when i enter the fields on  clicking the transition and entering the fields, the fields in parent issue (updated with new custom-fields  values)  but in subtask not visible 

Parent  issue 

custom-date A  =  1000

custom-field B  =  5  

Sub-task issue

custom-date A (not visible)

custom-field B  (not visible)

I want to  have the same behavior when i  create sub-task  from the More -> Create Sub-task    in the view screen  so that when i click on a transition and enter the  fields  on the screen i should get below results .  Describe below meanwhile the parent issue has already been created.

Parent  issue 

custom-date A  =  1000

custom-field B  =  5  

Sub-task issue

custom-date A  =  2000

custom-field B  =  7

 

An easier solution would be great!

Thanks!

Suggest an answer

Log in or Sign up to answer