I would like to add a custom field to the issues, which indicates whether the card is blocked by another card that is not yet marked "done".
Example: Imagine 2 story cards, Card 1 and Card 2.
Card 1 has a linked issue: "is blocked by" Card 2.
Card 2 has status "To Do".
This means Card 1 cannot yet be performed, as Card 2 is not "Done".
I would then like that there is a field in Card 1 that states
"IsBlocked" = "yes" (or something similar to this)
I understand that this is most probably using scriptrunner, but I don't understand how this works. I am using Jira Cloud (and have find relevant examples of scriptrunner for Jira Server that do not work).
Thankyou