How to create dummy Sub-task if an Issue is created.


Create a sub-task for each creation of Bug issue.

Means, if we create a bug issue then a postfunction should create a sub-task in it.

1 answer

1 accepted

1 vote
Accepted answer

Hi ,

You can use the Create on transition plugin . Its provides a postfunction for creating a subtask . You can add this postfunction on the Create transtion.

Exactly the same requirement is found in mentioned plugin.

But it is providing the extra functionalites also

I want only the specified requirement.How to do customization?

What extra functionalities is provided ? I dont think you will need customization , you dont use what you dont want :)

Why is that needed for creating sub-tasks?

Link type ids is what you get by going to http://yourserver/secure/admin/ViewLinkTypes.jspa

what is issueLinkTypeId and how can we get it?

Yes you're right?

For the given link I am getting

XSRF Security Token Missing

browser error

  1. Log in as a user with the JIRA Administratorsglobal permission.
  2. ChooseAdministration at the top right of your screen. Then choose System > Issue Features > Issue Linking(tab) to open the 'Issue Linking' page.

The link was to the same page.

Thanks Renjith, I got basic Idea about it

In the method call

createIssueLink(parentIssue.getId(), subIssueObject.getId(),xxxxx , user);

xxxx is issueTypeLinkId is a long type and how to get the type which is present in JIRA.

I guess this should been posted as a new question. I thought the orginal question here was about creating a sub-task.

Again Bharadwaj, new question. Before that try a google search :)

If I need to develop, the automatic creation of subtask issue when I create a Bug type issue.

How to approach?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,067 views 4 9
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