Hi everyone,
I have the below automation working in several of our projects.
The requirement is to add one more field to this automation which is not present in the dropdown menu. It says to use the More Options where I tried to figure out what I need to write but I failed. I found this example online
{
"edit": {
"customfield_id": [
{{#triggerIssue.customfield_id}}
{"add": {"value": "{{value}}"}}{{^last}},{{/}}
{{/}}
]
}
}
and tried it but I am getting the following from the audit log:
I don't know if it matters but the field that I trying to include is locked.
Help?
Hi Anastasia,
It sounds like they field is not available - which would explain why it is not in the dropdown as well. Check the Context for the custom field to be sure it includes the project you are working with in this rule. If it is, check to see if it is on the Create screen for that project.
Hi @John Funk
It is a locked field and it says:
It is associated with my screens and I can see it in all the projects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay - thanks for sharing that. What type of project are you using? Team-managed? Company-managed? Jira Work Management?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very good - see the other posts - not looking good right now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tested it with other fields that work for sure and I am getting the same result.
I think the json is wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share the actual json that you have?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{
"edit": {
"customFieldId_10001": [
{{#triggerIssue.customFieldId_10001}}
{"add": {"value": "{{value}}"}}{{^last}},{{/}}
{{/}}
]
}
}
I am really not literal with json so I wouldn't find a mistake
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Should be customField_10001 not customFieldID_100001
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry John,
I can't see what do you mean. Both of them are customFieldId_10001. I copy-pasted the value from the field's info.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You do not need the letters ID in there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, I see now, I thought the extra 0 was the issue. I just tried it and unfortunately got the same result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anastasia Seidaridi - So sorry, this got buried somewhere and I missed the email. Did you ever get this working?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @John Funk
No worries, I managed to get it to work by setting automation in each project separately. Unfortunately couldn't set it as a global automation but it works for now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What type of field is this? Strange that it would not show in a dropdown or allow you to create globally. Is there a Context on the field that limits which projects/issue types it is available for?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is the "Team" field that is not available in the dropdown and is also locked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, that would explain that then. I think they are still working on the functionality of that field and it will be available at some point. I don't know of any timeframe though.
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.