How to get a list of watchers of issue by the workflow? Follow
Hello,
I'm trying to change one of my attributes (field) on certain event, but keep getting "Cannot set value to custom field ".
rule FLOW
{
message("well done");
issue.FatherState={Resolved};
}
The first line (message) works, but the second isn't.
I tried to change to just "FatherState" and nothing happened.
"Resolved" is one of the enums for the certain field.
Can you please help me?
Thanks,
Etay
I'm trying to change one of my attributes (field) on certain event, but keep getting "Cannot set value to custom field ".
rule FLOW
when State.becomes({Fixed})
message("well done");
issue.FatherState={Resolved};
}
The first line (message) works, but the second isn't.
I tried to change to just "FatherState" and nothing happened.
"Resolved" is one of the enums for the certain field.
Can you please help me?
Thanks,
Etay
Please sign in to leave a comment.
for each tag in issue.tags {
if (tag.name == "Star") {
var watcher = tag.owner;
... do what you want with watcher ...
}
}
Is it possible to get watchers list now?
I'm afraid it's still not possible, please follow https://youtrack.jetbrains.com/issue/JT-11376 for updates. One possible way to do it is to issue a REST API request via workflow which will display all issue watchers.