Forums

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

Opening create sub task dialog with sub task issue type which is not default.

Ahmed_Bilal February 8, 2019

Hi,

On view issue page i am using java script to add couple of buttons to create  sub-tasks of specific types.

What i am able to achieve so far is.

JIRA.Forms
.createSubtaskForm({parentIssueId: 130693})
.asDialog({windowTitle: 'Create Subtask'})
.show();

It is opening sub-task dialog fine, but i am not able to select sub-task type.

I have added parameters with issueType but no effect.It is always selecting Sub-Task by default.

What i need is to specify issue type with createSubtaskForm function.

Thanks!

1 answer

0 votes
Tuncay Senturk
Community Champion
February 9, 2019

Hello Ahmed,

Did you try adding issueType parameter to the method call? Similar to below

JIRA.Forms
.createSubtaskForm({parentIssueId: 130693, issueType: xxx})
.asDialog({windowTitle: 'Create Subtask'})
.show();

where issueType is the ID of the issuetype.

Ahmed_Bilal February 10, 2019

Yes, i tried but it didn't work.

Timur Suzi
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!
March 23, 2022

np

Suggest an answer

Log in or Sign up to answer