Automation - remove value from roadmap field when done
Asked by Tomas Greif:

I am trying to setup an automation rule that would remove value from the roadmap field (set it to empty) in case when issue (idea) is moved to done. With some googling, I understood that this might be possible.

I have a rule "When: Issue transitioned to Done" then "Edit Issue fields". I have kept the "Choose field to set" empty and under additional fields I put:

```
{
"update" : {
"customfield_10130" : [{"set": []}]
}
}
```

I found the field ID here: https://\[baseurl\]/rest/api/latest/field

I also verified that the custom field belongs to our JPD project (we have only one created) under https://\[baseurl\]/rest/api/3/project/\[projectkey\]

When the rule triggers, I get the following log:  

```
Unknown fields set during edit, they may be unavailable for the project/type. Check 
your custom field configuration. Fields ignored - Roadmap (customfield_10130)
```

Any ideas on what I might try to make it work?


Answers:
author: Adam Sadowski
body: [@Tomas Greif](/t5/user/viewprofilepage/user-id/4990392) I did this yesterday actually, but for when we "archive" an idea. Here's a screenshot to do it with the out of the box automation. You just leave the "roadmap" field value blank.

![CleanShot 2024-03-28 at 16.06.41@2x.png](https://community.atlassian.com/t5/image/serverpage/image-id/315162iB16FF7E024CB9CEB/image-size/large?v=v2&px=999 "CleanShot 2024-03-28 at 16.06.41@2x.png")

comments: author: Tomas Greif
body: Thanks [@Adam Sadowski](/t5/user/viewprofilepage/user-id/5463530) . I get the same error as before. I have even tried to create my own custom field and then apply the rule. I still get the following:

![Screenshot from 2024-04-02 08-34-50.png](https://community.atlassian.com/t5/image/serverpage/image-id/315656i3164B6C457B7AFBC/image-size/large?v=v2&px=999 "Screenshot from 2024-04-02 08-34-50.png")

Do you have any elevated access rights in you JIRA instance? I am admin in the JPD project, for other JIRA related stuff I am just a regular user. I can't think of much else what could be causing this.


author: Deepak G Singh
body: [@Tomas Greif](/t5/user/viewprofilepage/user-id/4990392)did you ever get this working? I'm facing the same issue with setting the roadmap field.


author: Adrian_Lester
body: I do something similar, but different (so this may not be of interest to you but I thought I'd mention it).

Instead of removing the value from the roadmap field, I've defined a value Shipped that I use. (This is so that I can distinguish between ideas that have shipped and those that haven't yet made it onto the roadmap).

![Screenshot 2024-04-02 180159.png](https://community.atlassian.com/t5/image/serverpage/image-id/315823iDD6D7A1D7CC27AB2/image-size/large?v=v2&px=999 "Screenshot 2024-04-02 180159.png")


author: Michal Vit
body: Have you checked if that's the right field for the project where you are running the automation?

JPD has fields per project - in my instance we already have 10 Roadmap fields ...

comments: author: Tomas Greif
body: Thanks [@Michal Vit](/t5/user/viewprofilepage/user-id/3252159) . I checked the project id under https://\[baseurl\]/rest/api/3/project/\[projectkey of our JPD\] and it is matching. Fortunately we have only one roadmap field so far :)


author: Michal Vit
body: [@Tomas Greif](/t5/user/viewprofilepage/user-id/4990392) what type is your field?


author: Tomas Greif
body: The field is dropdown.


Tags: automation

custom-field

roadmap

status