Script runner behavior and workflow steps

Anca Cristescu
Contributor
October 17, 2024

Hello,

I have an workflow that I'm using in all my development projects. 

For one of this projects I need to have a mandatory field, for one issue type, for some statuses.

I tried to use script runner behaviors for this, but the when/except condition has effect on all projects, not only the one in mapping.

How can I create the behavior so the condition will not overwrite the mapping?

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 18, 2024

Hello @Anca Cristescu ~ can you provide a screenshot of your Behavior settings?  Typically, when you create a Behavior, you are prompted for the Project and Issue Type which should restrict that Behavior to that Project / Issue Type.  You can also utilize the server-side script to further direct the behavior.  Check out the example scripts library, there might be something close to what you're looking for.

Capture.PNG 

Capture.PNG

Anca Cristescu
Contributor
October 22, 2024

Thank you @Laurie Sciutti for your response :)

I found the problem when I was trying to explain it to my colleague and realized that I had also added a condition in the workflow... witch is available for all projects :(  Removed the condition, and now we are good with the behavior :)  

 

Like Laurie Sciutti likes this
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events