Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Get this error "customfield_10008": "The Actual start must be a string"

{
"fields":{
"summary":"None",
"issuetype":{
"id":"10000"
},
"project":{
"key":"CI"
},
"customfield_10007": {
"id":"10007",
"Change reason":"Upgrade"
},
"customfield_10008":{
"id":"10008",

"Actual start":"Jan 05,2022,12:00 AM"
},
"customfield_10009":{
"id":"10009",
"Actual end":"Jan 05, 2022, 12:00 AM"
},

"customfield_10011":{
"id":"10011",
"Epic Name":"CI-1",
},
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "description"
}
]
}
]
}
}
}

1 answer

1 accepted

5 votes
Answer accepted

Hey @Abhishek Choubey 

Welcome to Atlassian Community !!

I guess you are trying to set these fields in JSON in automation ?

For date fields we have to pass values in these formats:

Automation_for_jira_Dates_JSON.png

So please check if the field you are mentioning "Actual Start" is Date picker or Date time picker and based on that pass the values.

Regards,

Vishwas

Hi @Vishwas N M  can you please look into it

Error:-"customfield_10007": "Specify a valid value for 'Change reason'. The allowed values are 10011[Repair], 10012[Upgrade], 10013[Maintenance], 10014[New functionality], 10015[Other], -1"

 

JSON:-

{
"fields":{
"summary":"None",
"issuetype":{
"id":"10000"
},
"project":{
"key":"CI"
},
"customfield_10007": {
"id":"10007",
"Change reason":"Maintenance"

},
"customfield_10008":"2015-11-10",
"customfield_10009":"2019-11-10",

"customfield_10011":"CI-1",
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "description"
}
]
}
]
}
}
}

Hey @Abhishek Choubey 

Check this part. I hope customfield_10007 is change reason rite ?

"customfield_10007": {
"id":"10007",
"Change reason":"Maintenance"

}

When you are using id to set values don't provide text part like this : "Change reason":"Maintenance"

Modify the above part like this:

"customfield_10007": {"id":"10011"}

This sets "Change reason" to "Repair"

so you can give appropriate value only ids based on this list: 10011[Repair], 10012[Upgrade], 10013[Maintenance], 10014[New functionality], 10015[Other]

 

Regards,

Vishwas

script running perfectly

Thanks @Vishwas N M 

Like Vishwas N M likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

610 views 5 12
Read article

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