06-30-2021, 03:05 PM
There is a project setting:
key = "code_prefix"
and make sure the search_type is filled out for your search_type (in this case sthpw/pipeline).
You can set the value to be whatever you wish. If you enclose the value with parenthesis, you can include an expression:
value = {project.code}
This should give you what you want.
There is also another setting "code_format" which if set to random will make the generated code have a randomly generated alphanumeric key. This is useful if you really don't care what the code is and you need to merge is with other data sets. PIPELINE001 for example could likely clash with another plugin, while a 10 digit random code will not. If this form is set to an integer, it will pad the number by that many digits (instead of the default 5).
Hope this helps.
key = "code_prefix"
and make sure the search_type is filled out for your search_type (in this case sthpw/pipeline).
You can set the value to be whatever you wish. If you enclose the value with parenthesis, you can include an expression:
value = {project.code}
This should give you what you want.
There is also another setting "code_format" which if set to random will make the generated code have a randomly generated alphanumeric key. This is useful if you really don't care what the code is and you need to merge is with other data sets. PIPELINE001 for example could likely clash with another plugin, while a 10 digit random code will not. If this form is set to an integer, it will pad the number by that many digits (instead of the default 5).
Hope this helps.