I am currently trying to update the remaining estimate of a story based on the linked issues.
I manage to get the comulative time of all linked issues and their subtasks, but I fail at committing the update to the original story.
For constellations like these I keep getting the error:
"Field 'remainingEstimate' cannot be set. It is not on the appropriate screen, or unknown
put("/rest/api/2/issue/"+issue.id)
.header("Content-Type", "application/json")
.body([
fields: [
remainingEstimate: "5"
]
]).asString()
I also tried inserting the numer without parenthesis or using
fields: [
timetracking: [
remainingEstimate: "5"
]
]
Can anyone help me?
Hi @Stefan Brocanelli ,
The error says that you do not have the field on the screen? Could you check if the field "Time Tracking" is available on the issue screens?
Hi @Stefan Brocanelli ,
Always update pass bot original estimate and remaining estimate in the request body even if only one of them needs an update.
https://jira.atlassian.com/browse/JRASERVER-30459?
{ "fields": { "timetracking": { "remainingEstimate": "55m", "originalEstimate":"2h" } } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the error message "not have the field on the screen" is due to wrong syntax being used for the request. The field original Estimate is present on our issue view on the kanban board.
put("/rest/api/2/issue/"+issue.id)
.header("Content-Type", "application/json")
.body([
fields: [
timetracking:[
originalEstimate: "5d"
]
]
]).asString()
Here I also get the error:
Field 'timetracking' cannot be set. It is not on the appropriate screen, or unknown.
What is the correct syntax to update originalEstimate through Scriptrunner for cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To update a custom field, the field should be available on the Edit screen and just on the view screen. If you are trying to add it during issue creation, then you need to add it to create issue screen as well. You can refer https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/
Section:
"timetracking":
{ "originalEstimate": "1d 2h",
"remainingEstimate": "3h 25m" }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not the problem.
The problem is with the syntax of the request.
Even when I try to change the summary, which is NOT a custom field and IS visible, there is a problem with the syntax of the request:
put("/rest/api/2/issue/"+issue.id)
.queryString("overrideScreenSecurity", Boolean.TRUE)
.header("Content-Type", "application/json")
.body([
update: [
summary:[{
set: "Test123"
}]
]
]).asString()
And the error then is:
Field with id' summary' and name 'Summary' does not support operation 'maximumNumberOfParameters' Supported operation(s) are: 'set'\"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.