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

Your Points Tracker
  • 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
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?
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

Script Post Function Create a Sub-task with required fileds Edited

Hi, Am trying to use script post function to create a subtask whenever a parent is created by predefined fields in subtask. am new to this scripting and am trying to get this done

Predefined fileds(which are required):

1.Cascading select - Phase and Task - Child option 14494(parent option 1-child option 1)

2. Drop down signle select - CTA Destination - Option N/A

3.Drop down single select - Landing Page - Option N/A

4. Issue due date to current date

In the additional issue actions, i tried to set the following.

import java.sql.Timestamp
def cf = customFieldManager.getCustomFieldObjectByName("Phase & Task")
issue.setCustomFieldValue(cf, '14494')
def cf2 = customFieldManager.getCustomFieldObjectByName("CTA Destination")
issue.setCustomFieldValue(cf2, 'N/A')
def cf3 = customFieldManager.getCustomFieldObjectByName("Landing Page")
issue.setCustomFieldValue(cf3, 'N/A')
issue.setDueDate(new Timestamp((new Date()).time))


Target Issue type - Subtask

Fields to copy- I don't know what it means here, so I selected Description. I don't want any fields to be copied while creating a subtask

Sub-Task Action - In Progress(21)

Important NOTE: when a user creates a subtask from a parent in a regular way(more>create subtask) there are 4 required fields which are mentioned as above. Am trying to solve this by adding those 4 fields in additional issue actions hoping it will clear required field validator in subtask create transition.

Any help? Thanks in advance



0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Why everyone using Jira must be GDPR-compliant

Did you know that penalties up to 4 % of the yearly company turnover are possible in case of GDPR violations? GDPR regulations are currently mainly relevant for companies in the EU, but countries lik...

81 views 1 2
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