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

Change create date and other system fields with Python

Hi, 

I'm trying to migrate issues from another tool to jira, I can obtain the Json and I'm creating the issues with the python method. But I cannot modify field such as 'Status', 'Created Date', 'Update date' and so on, any ideas?

1 answer

0 votes
Andy Heinzer Atlassian Team Oct 22, 2019

Hi Daniel,

I understand that you are either creating or updating Jira issues using python in some method, but I am unclear as to exactly how you are doing that.

The status field in Jira is a system field.  It is not something that you can typically change just by editing an issues in Jira. Instead you have to execute a transition in Jira in order to be able to change the status field.  It's the execution of that transition that does this.  If you're python method is calling the REST API endpoints to edit/create issues, I'd be curious to know exactly which endpoint you are accessing, and what your json payload looks like.  We do have a reference guide on which endpoints are available in https://developer.atlassian.com/cloud/jira/platform/rest/v3/

As for Created date and Update date, these too are system fields.  They are not typically expected to let end users change their values for an issue once created.  The create date is set to when the issue is created, just as the updated date is always reflecting the last update made to that issue.  End users in Jira are not expected to be able to manipulate these values.  That said, if you are a Jira administrator, you could have access to the External System import.  This importer does have the ability to change these kinds of system fields as an admin that normal end users would not have the ability to change themselves.  Perhaps you could use this method if you need to set those fields when importing issues into Jira.

I hope this helps, please let me know if you have any additional concerns about these steps.

Andy

Never-mind, I already understand the way I can build the JSON files with Pyhton. Thanks for your answer.

Suggest an answer

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

How InVision centralized their tools and scaled their remote team with Atlassian and Slack

Hi Atlassian Community, We recently published a case study that we thought you might be interested in. Learn about how InVision built their fully remote company’s culture using Atlassian and Slack ...

236 views 0 1
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