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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

151 views 1 17
Join discussion

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