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

Requirement:

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
Mizan Community Champion Jan 07, 2013

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?

Mizan Community Champion Jan 08, 2013

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.

https://confluence.atlassian.com/display/JIRA/Configuring+Issue+Linking

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

80 views 0 5
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