Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

automate change customfield account

Hugo DONA August 5, 2022

Hello,

I'm trying with an automate to edit the value of the customfield "account".

However, to edit the field I need the id and I can't do it directly with the value. But I only have the value at my disposal.

Someone could help me please

Thank you

1 answer

0 votes
Bharathi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 5, 2022

Hi @Hugo DONA,

If I understand your question right, since "account" is a custom field, to find the field's ID, you can navigate to Administration --> Issues --> Custom fields --> Search/pick the custom field --> click on ellipses (...) at the extreme right and select configure --> Now, check the url of the page which will end with something like "customFieldId=10101". This numeric value is the ID of your custom field.

Hope this helps!

Thanks!

Hugo DONA August 5, 2022

not exactly, I must have expressed myself badly

I use bulk ticket admin import via CSV.

when mapping the "Account" field, I have for example the value "30000000000", however jira expects the id of the "Account" customfield value.

"customfield_10104": {
"self": "https://JIRA_HOST/jira/rest/tempo-accounts/1/account/3600",
"id": "3600", -> the value that jira needs
"key": "300000000047088",
"name": "300000000047088"  -> the value I have
},

Bharathi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 5, 2022

Okay, not sure of the solution here. Can you check if you're able to add this value "30000000000" as an option on the custom field configuration and then do the import? Just a wild guess! Sorry if it doesn't work. :(

Suggest an answer

Log in or Sign up to answer