script failing.The script is failing with custom field XXX

Below is the error on using the “XXX” with customfield_10855.

===========

Creating BL : I&V Feature Test Setup Readiness - Uplink Min Rx Access

Status : FAIL : Warning: user is not an administrator. Custom fields names are not available for use or validation. Use custom field ids!

Remote error: com.atlassian.jira.rpc.exception.RemoteValidationException: {customfield_10855=Version with id '1404_2' does not exist.} : []

Fix version: Release

RG40

===========

Syntax used in the script:

jira_cmd_suffix=' --action createIssue --project "'+project+'" --type "'+issue_type+'" --summary "'+summary+'" --assignee "'+assignee+'" --reporter "'+reporter+'" --fixVersions "'+fix_versions+'" --affectsVersions "'+affects_versions+'" --components "'+components+'" --custom customfield_11383:"'+ran_no+'",customfield_10855:"'+XXX+'",customfield_14790:"'+a360_id+'",customfield_11890:"'+sp+'"'

jira_cmd=jira_cmd_prefix + jira_cmd_suffix

3 answers

I took the value of the custom field from admin sextion-->configure

1404_2 is a valid value for the custom field

0 vote

It looks to me like the custom field is a *Version* type field and you've given it an invalid version ID. Check that field 10855 is of the right type first, and then what the available content is in the UI

Ok, have you tried it with the ID of the version, not the name? I think you need to use IDs throughout this.

Thanks noc for checking.As you said the field is a version picker.but

1404_2 is a valid version

How can i find the id of version

Go to the list of versions in the project and hover over the link leading to one of the edit/update options

it worked thanks a lot.But 1404_2 works for updating field of “fix_version” but doesn’t for start sprint as the field values are same?

They're different objects with different types and IDs.

A version is a version type object, but a sprint is not a version. (I suspect it's a sprint object, rather than an "option" or plain "string", but I've not looked). It doesn't matter that they have the same name, they're separate entities.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,305 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot