One complication I came across while building my Generate Sprints record producer was setting the default value of the Simple SDLC project field to the project that was generating the sprints. After some research, I discovered that you can pass values through the URL. With that in mind, I used a UI action form link to direct users to the record producer while adding the sys_id of the project to the URL.

Once that was established, I used the getParameterValue function from Mark Stanger’s article on parsing URL parameters, and put it in a catalog client script, adjusting some parts to better fit my needs.

This made it so that the project sys_id could be taken from the URL and placed into the Simple SDLC project field on the record producer. Now, when a user opens a project and wants to generate sprints, the project field is already populated with the project they were working on.