Having difficulty modifying the custom_field in Jira using Python

Encountering issues while trying to update fields for an problem in Jira using Python.

Upon examining the JSON raw data, I found that it is located at:

{fields:{'customfield_10000':'some text'}

Despite attempting various methods like:

issue.update(fields={'customfiled_10000':'edited'})

issue.update({'customfiled_10000':'edited'})

issue.update({fields:{'customfiled_10000':'edited'}})

issue.update(customfiled_10000='edited')

All attempts resulted in

response text = {"errorMessages":["Internal server error"],"errors":{}}

I also tried adding +"0000" in Client.py but the issue remained unresolved.

A new discovery, when creating a fresh issue

issue= jira.create_issue(fields=root_dict)

I could modify this newly created issue object without any difficulty

However, when retrieving an existing issue using

issue = jira.issue('JRA-123')

attempting to edit this issue with issue.update results in internal error.

Answer №1

There is a spelling error in the customfiled part - it should be customfield

issue.update({'customfiled_10000':'edited'})

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Ways to indicate an error in a field without any text (Blank)

I'm encountering a minor issue with the empty description field in the API for weapon details. What I'm looking for is that when searching for a specific type of weapon, if it has no description, I want to display "No description" instead. Below ...

Which programming languages are recommended for building a web crawler?

My background includes extensive experience with PHP, but I have come to understand that PHP may not be the most suitable language for building a large-scale web crawler due to its limitations on running processes indefinitely. Can anyone recommend alter ...

Retrieving bounding boxes and category tags from the MS-COCO dataset

In my current project, I am using the MS-COCO dataset to work with images. My goal is to extract bounding boxes and labels for images containing backpacks (category ID: 27) and laptops (category ID: 73). These annotations will be stored in separate text fi ...

What could be causing selenium not to click in Python?

Recently, I began using the Selenium library to automate button clicks on YouTube. Initially, everything was working smoothly until one day it suddenly stopped functioning without any changes made on my end. Strangely, when I ran the code on a different ...

The 'selenium.common' module could not be found

I encountered an issue while attempting to execute this code on a Windows 64-bit system. from selenium.common.exceptions import NoSuchElementException, ElementClickInterceptedException from selenium import webdriver The specific error message I received w ...

Preventing Selenium from immediately exiting and addressing issues with keys not being typed

Is anyone else experiencing the issue where the site opens for a split second and exits, and it doesn't type what it's supposed to? How can this be fixed? I've tried multiple methods to locate the element, and I believe my approach is corre ...

Chunking and appending the parquet file simultaneously

My goal is to save a pandas dataframe to a file in parquet format using the append mode. However, when I try to append data to an existing file, it ends up overwriting the entire file with new data. What could be causing this issue? The syntax used for wr ...

Can an XPath be affected by changes in its surrounding content?

If the content within the XPath is altered, does the XPath itself change? For example, if the website changes the text in the XPath element from 'supports' to 'support', will the XPath also change or remain unaffected by the modificati ...

Guide on transferring a particular XML element to a separate XML document using Python

I have several xml files similar to the example below:- File Name = Updated input.xml <?xml version="1.0"?> <TestSuite Name="A123"> <Group Name="TestRoot" ExecutionPolicy="AnyDeviceAnyOrder"> < ...

Combine pandas rows by their values and missing data cells

Here is a sample of my dataframe: ID VALUE1 VALUE2 VALUE3 1 NaN [ab,c] Good 1 google [ab,c] Good 2 NaN [ab,c1] NaN 2 First [ab,c1] Good1 2 First [ab,c1] 3 NaN [ab,c] Good The requirement is as follows: Each row with t ...

Extract information from urllib request

I recently received this extensive output from the code: urllib.request.urlopen("https://api...").read() Upon inspection, it appears to be a JSON object, but in reality, it is a bytes object. I am currently exploring ways to parse through all th ...

Can you please explain the errors related to formatting in this text?

Could someone explain the meaning of this error? Here is the code snippet in question: steps = np.loadtxt('par.in', unpack=True, usecols=[4]) maximum = np.loadtxt('par.in', unpack=True, usecols=[3]) minimum = np.loadtxt('par.in&ap ...

What is the best method for discovering all possible partitions of list S into k subsets, some of which may be empty?

Given a list of unique elements, such as [1, 2], the goal is to split it into k=2 sublists. The objective is to generate all possible sublists: [ [ [1,2],[] ], [ [1],[2] ], [ [2],[1] ], [ [],[1,2] ] ] The task is then to split the list into 1<=k<=n ...

Python can be used to compare columns from two unsorted files and produce a specific output

I need assistance comparing two large pipe delimited files with data. The primary key is located in one of the columns. For example: one.dat 123|NY|AA|500 569|NY|A|450 777|OK|B|250 899|OK|C|100 two.dat 569|NY|A+|500 777|OK|A|350 899|OK|B|150 The desi ...

I'm seeing an exit code of -1, even though there are no errors being displayed in the IDE. What could be

Recently, I've been delving into Python coding and have hit a roadblock with my password generator program. Despite all efforts, it just doesn't function as intended. My goal is to create a secure password generator that can handle special charac ...

The driver attempted to input the text "Selenium" but encountered an error: AttributeError - The 'WebDriver' object does not have the attribute 'send_keys'

While attempting to enter text into the Google search box, an unexpected error popped up. Has something recently changed or been modified in Selenium? from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium ...

Is it possible for Python JSON to encode/decode functions from text files?

Is JSON capable of encoding and decoding functions to and from files, in addition to complex data? ...

Analyzing the audio input from QAudioProbe

I am trying to connect to the audioBufferProbed signal from QAudioProbe in order to capture and print out the signal values while media is playing. However, I seem to be having trouble with using the connect function properly. My code is written in Python ...

Retrieve the href attribute value using a CSS Selector, instead of the anchor text

I am currently working with Selenium to extract the first instances of hrefs from multiple classes with the same name. However, I am encountering difficulty in retrieving the actual href value. So far, I've only been able to successfully retrieve the ...

The variable "display" in the global scope was not located

Currently working on a troubleshooting code, I've encountered an issue. When I select "other" and try to input data into the form, upon hitting continue, an error is displayed: Exception in Tkinter callback Traceback (most recent call last): File &quo ...