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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,692
Community Members
 
Community Events
184
Community Groups

How can use python to set the scheduled start date in portfolio?

Edited

I'm trying to use the python API to set the start date of an epic in the Portfolio road map.  I've spent a week trying to figure it out.

                    issue_dict = {   'startdate''2020-01-08',

                                        'duedate''2020-04-08',

                      new_issue = jira.create_issue(fields = issue_dict)

Also looked for other ways, like the WorkLog, to no avail.

Any help would be greatly appreciated.

 

Sorry I'm confused.  Perhaps this doesn't have anything to do with Portfolio.

It may just be about the API to set start dates for a Roadmap in a Next Gen Project

2 answers

1 accepted

0 votes
Answer accepted

startDateFld = getattr(issue.fields, startDateFldName)        
if issueType == 'Epic' and dateStarted is not None and dateStarted != startDateFld:
            issueDict.update( {startDateFldName: dateStarted} )

if row.EndLate is not None:
            dueDate = getattr(issue.fields, 'duedate')
            endLate = row.EndLate.strftime('%Y-%m-%d')
            if issueType == 'Epic' and endLate != dueDate:
                issueDict.update( {'duedate': endLate} )

It may just be about the API to set start dates for a Roadmap in a Next Gen Project

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events