Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Default epic to newly created tickets

Hi Team,

How to assign Epic to newly created tickets automatically.

3 answers

2 votes
Jack Community Leader Mar 18, 2021

you would need some form of automation to do that (scriptrunner, automation for jira, etc). Obviously, you would want some sort of conditions least every new issue would be assigned to the epic which, in that scenario, your Epic becomes your project. ;-)

Yes @Jack , I have script runner, JSU and JMWE addons. Tickets are created by people from other department who wants to get things done from us. So when the ticket is created, we would like to assign to EPIC. So anyone who creates a ticket with XXX as the project, we want to check if we can assign that ticket automatically to a specific epic.

I found the solution here.

Link : https://library.adaptavist.com/entity/automatically-add-epic-link-into-issue-of-certain-type

import com.atlassian.jira.component.ComponentAccessor

// When you create an issue of issue type Story that will be under an Epic
final issueTypeName = "Story"

// The issue key of the Epic
final epicIssueKey = "EPIC-1"

if (issue.issueType.name != issueTypeName) {
return
}

def epicLinkCustomField = ComponentAccessor.customFieldManager.getCustomFieldObjects(issue).findByName("Epic Link")
def newEpic = ComponentAccessor.issueManager.getIssueByCurrentKey(epicIssueKey)

issue.setCustomFieldValue(epicLinkCustomField, newEpic)

Hi @Lakshmi S ,

The answer to your question is "Yes, you can update the Epic link field while creating the new ticket using the "Update any Issue" JSU post function. Upon issue creation it will be linked with existing EPIC".

Please follow the below steps for the same.
1. Create an EPIC with the epic name.
2. Provide the below post function. 
For example here, TJ-5 is an EPIC issue created already and with epic name, like my-epic-name
jsu-epic.png

3. Now, you can create a new issue that you want to link to the above EPIC.
4. The newly created issue gets linked with (my-epic-name) the EPIC, as shown:
jsu-new-issue-linked-epic.jpg

We have opened a support ticket, JSU-3405  to better track your request. However, we couldn't add you as a reporter. Please sign up using this link signup-here and share the user name/id. We'll then add you as the reporter and confirm.

Thanks,
Raja

0 votes

You should be able to set default issue type by doing the following:

Project > Project Settings > Issue Types > Actions (Button) > Edit Issue Types


Here you will find a field that looks like this:
image.png

This should allow you to set a default Issue Type for your project (such as Epic). However, please keep in mind that this may not work, as there is overriding logic which will default to the last used issue type. 

You can refer to this thread for more details:
https://community.atlassian.com/t5/Jira-questions/Default-Issue-Types/qaq-p/930528 

 

I believe the best solution would be to set up some sort of automation (Jira has this too), as mentioned above.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

⚡️NEW Group for Confluence Cloud Admins

Calling all Confluence Cloud Admins!  We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...

95 views 2 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you