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

Create a new ticket with fields from an existing ticket Edited

Hi,

I am trying to create a new ticket from an existing ticket. (similar to cloning but I dont want the history to appear)

Im using Jira-Python REST handle for this and did this so far.

jira = JIRA(options=jira_options, basic_auth=credentials)
issue = jira.issue('CT-72836')
t = issue.fields
newissue= jira.create_issue(fields=t)

But im thrown with this traceback. I even tried to cast t in to a dict but that didnt work either.
Is there any possible way of getting this done without a plugin

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\AppData\Local\Continuum\Anaconda2\lib\site-packages\jira\client.py", line 1077, in create_issue
p = data['fields']['project']
TypeError: 'type' object has no attribute '__getitem__'
>>> newissue= jira.create_issue(t)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Continuum\Anaconda2\lib\site-packages\jira\client.py", line 1077, in create_issue
p = data['fields']['project']
TypeError: 'type' object has no attribute '__getitem__'

1 answer

0 votes

Hi! 

better to raise into github issues of that wrapper I think so

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