I have implemented the most basic jira custom field as type object and it stores data fine, and I can pull data fine.
I want to get more granular with the schema and ways to work with it. Can anyone recommend a really good tutorial or examples? To be honest, the Forge documentation is not so clear with respect to this. Saying a valid “json schema” will work doesn’t seem to be the case. I have tried a hundred times…
It would be great just to be able to paste in an actual schema and not have to follow the nutty indentation rules for the manifest. And what version of “schema” are we working with? I want to use 6, but that does not seem to work when I try to specify it.
Again, I am hoping to find great examples or tutorials so I can learn more on how to implement this properly.
A valid schema…
{
“$schema”: “http://json-schema.org/draft-06/schema#”,
“type”: “object”,
“properties”: {
“list”: {
“type”: “object”,
“propertyNames”: {
“maxLength”: 3,
“minLength”: 3 ,
“pattern”: “^(TCO)|(SER)|(ESR)”
},
“patternProperties”: {
“”: { “type”: “array” }
},
“properties”: {
“”: {
“type”: “array”,
“items”: [
{
“type”: “object”,
“properties”: {
“”: {
“type”: “string”
},
“”: {
“type”: “string”
},
“”: {
“type”: “string”
}
},
“required”: [
]
}
]
}
},
“required”:
}
},
“required”: [
“list”
]
}