Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Sub Tasks - Auto populate certain fields from parent on creation

Hi,

When we create a sub-task, is there a way to populate some of the fields before hand so that user does not have to type them again?

 

Best,

Sumit

2 answers

Hi @Sumit Bhardwaj ,

i have never done it before but my first thought is to create a custom script listener (maybe) with Scriptrunner addon so it can take values from parent issue and copy them to subtask.

Best Regards.

CM

 

------------- Edit:

Go to the workflow of this issue. Find the create transition and in there, exist a post function tab. Click to add a post function and check the option "copy field values from parent to subtask issue".

Thanks Christos.

 

One Query, Post function will be executed once the user saves the sub-task, right? Or it will be before that.

 

FYI we want to pre-populate the values when use clicks create sub-task from the parent Story/Task and the form gets loaded.

 

Best,

Sumit

Hello @Sumit Bhardwaj ,

What do you mean after the user saves the subtask?

  • When the user clicks the subtask button a subtask is just created. Until you move to the subtask itself the fields will be already be populated if its done correctly :)

Another thing that u should do! Create a test environment of the instance... Make any changes and tests that you want and if they are working, apply them to the production instance

mfg

Christos

@Christos Moysiadis 

What I mean is when user clicks on new sub-task, does the post-function apply before the user sees the sub-task form or post-function applies when user clicks Create button after entering all the details on the sub-task form.

 

Also, can the post function be executed based on issue type(sub-task) in this case?

We are using JIRA cloud. is it possible to create test instance there or should I work with a test project?

Best,

Sumit

0 votes
John Funk Community Leader Mar 28, 2019

Hi Sumit,

Yes, it is possible, and we do it a lot. Just edit the Create transition for the Sub-task (the transition from the first circle to the first status) and add a post function for each field that you want to populate on create. 

John Funk Community Leader Mar 28, 2019

Sorry, should have mentioned that we use the JMWE add-on to accomplish that. 

Thanks John. JMWE is another paid add-on. Is there any other option apart from this?

John Funk Community Leader Apr 01, 2019

You could add a post function for the Create transition and try to use the Update Issue Custom Field post function. But not sure if that will actually work since it is not really an update but an initial population of the field. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

3,665 views 5 15
Join discussion

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