...
Often other users have already done something similar to what you would like to do. Find an example on the Atlassian Community?
Look for routines.
First look for routines in the Jira Integration Routines section of the documentation. Most routines dealing with Jira will be found here.
The second place to look is the Jira Administration Routines.
All the other routines are specifically meant for any Power Scripts feature you may be using. For example, if you are using Live Fields, look for Live Fields routines.
The last category of routines has to deal with things like math, string manipulation or array routines.
If the routine you are looking for does not exist, consider implementing a script which consumes an Atlassian REST API (Jira Server/DC), (Cloud).
When developing SIL scripts which consume REST API, try using getting results with httpGet().
Sometimes in your research Groovy fits the bill (available via the SIL Groovy Connector, Jira Server/DC only). Reasons for using Groovy are the following:
Groovy tends to run faster than REST API.
Only a “Groovy” solution exists and is the only way to create a workaround.
...