Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×It seems impossible to set the field "Account" which is a custom field made by the Tempo Timesheets plugin.
In our case this is the customfield_10002. As seen in the REST documentation this should have a SET opration (see below).
"customfield_10002": {
"required": false,
"schema": {
"type": "account",
"custom": "com.tempoplugin.tempo-accounts:accounts.customfield",
"customId": 10002
},
"name": "Account",
"key": "customfield_10002",
"hasDefaultValue": false,
"operations": [
"set"
]
}
But whatever value or id I Set (values and ID's are accessible via http://<youratlassian>/rest/tempo-accounts/1/account/ ) it wont be set in the automation. The automation on the other hand says it was a succes.
Has someone encountered and fixed this issue?
Hey Steven,
So I heard back from Tempo support now. It looks like the correct construct is to make the id a string:
{ "fields": { "Account": "234" } }
Can you give that a go please?
Cheers,
Andreas
This worked indeed . 1 upvote
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am trying to set Account field and my body to create issue is
{"fields":{"project":{"id":"10000"},"summary":"Tesing","description":"description","issuetype":{"id":"10006"},"Account":"3"}}
I see this error.
{"errorMessages":[],"errors":{"Account":"Field 'Account' cannot be set. It is not on the appropriate screen, or unknown."}}
Field id present in the screens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vivek Thangathurai - we are also facing the same issue. Did you got any solution ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Replace "Account" for "customfield_10002".
example:
{"fields":{"project":{"id":"10000"},"summary":"Tesing","description":"description","issuetype":{"id":"10006"},"customfield_10002":"3"}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This will only work if the Account custom field is indeed 10002. You could check this in your administration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great to hear it worked! Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steven,
So did you try this with an 'Edit issue' action using the 'Advanced' block?
Is this the JSON you put in the advanced block:
{ "fields": { "Account": 234 } }
234 in this example would be the account id.
I haven't been able to test this yet and trying to get a hold of someone from Tempo. I'm not 100% sure if this field can be set this way (it's a non-standard custom field).
Cheers,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andreas,
I tried this but it doesn't work. The rule triggers at the condition and as a test i also set the assignee in the automation. That works fine, but the account field won't set.
Cheers,
Steven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Steven,
So I've just setup Tempo locally and tried pretty much any combination I can think of to edit the Account field via REST with no luck. I'm not sure this will be possible.
I did just open a support case with Tempo to ask them what they magic format for this field might be. I'll let you know when they get back to me.
Cheers,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For future users trying to do the same thing.
This works:
{ "fields": { "Account": "234" } }
(account id as a string not a number)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am trying to set Account field and my body to create issue is
{"fields":{"project":{"id":"10000"},"summary":"Tesing","description":"description","issuetype":{"id":"10006"},"Account":"3"}}
I see this error.
{"errorMessages":[],"errors":{"Account":"Field 'Account' cannot be set. It is not on the appropriate screen, or unknown."}}
Field id present in the screens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.