I have jira and bitbucket instance and I need to write a script to create bitbucket project and repository with the information from JIRA. I know python so have to do it with python:
1. Script should select issues of JIRA with project key in my case it is 'BR' and status To Do.
2. Script should read values of Bitbucket Project Name, Bitbucket Repository Name fields
3. Script should open a new Bitbucket project with Bitbucket Project Name if the project not exists
4. Script should open a new Bitbucket repository with Bitbucket Repository Name under project with Bitbucket Project Name
5. Script should update(create transition) JIRA issue. After the process JIRA issue should have status "Done"
Could someone help me about this. Thank you in advance!