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

how to get the original project name using JIRA python

Hi,

In our company, there are multiple teams using JIRA and each of them have a Project name. When a defect is logged in JIRA, it is moved from one team to another by changing the Project name. Once the defect is fixed by a team, it is assigned back to the original project name.

Example: A defect is logged with project name as "A", and it is moved to project name "B" to fix, after fixing the defect, team from project "B" move it back to "A".

 

I'm trying to automate this process. But for that i need to know the originating project name.

i'm using the below code, which gives me the current value of the project name. But i need to get the original value of the project name to which i have to move back the defect.

print(issues.fields.project.name)

 Is there  a way to get the original value of the project name? ("A" in this case).

 

1 answer

0 votes

Is your "Jira Python" running inside Jira or externally, using the REST API?

Yes. It is inside Jira. We access it using an URL.  

Just to be more clear, I'm trying to automate this using Jira package in Python.

I'm afraid these two sentences contradict each other:

"Yes. It is inside Jira. We access it using an URL. "

Is the code inside Jira or are you using a REST API (a URL) to get the data?

Suggest an answer

Log in or Sign up to answer
TAGS

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