Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Certificate issuer should be able to choose whether the certificates  are issued to only state teachers or all users.

Jira Legacy
serverSystem JIRA
serverId2207a759-5bc8-39c5-9cd2-aa9ccc1f65dd
keySB-16099


Solution Approach :


Solution 1 : While adding a certificate template to a course-batch, we can add a new

...

sub-section as "

...

user" inside the criteria section

...

, inside user we can specify a field as "type". This would specify whether the certificate is applicable only for state teachers or all users.The possible values for

...

type field can be STATE and ALL.Depending on the value of type field of a certificate template,Certificate issuer will be able to issue the certificate to only state teachers or all the users.

Request : (Add Certificate Template)

{
    "request":{
        "batch":{
            "courseId":"do_2128813877021900801193",
            "batchId":"0128821148183429120",
            "template":
            {
                "identifier":"template_01",
                "criteria": {
                "enrollment": {
                   "status": 2
                   },
"user":{
"type":"state-teacher"STATE"
}
           },
           "signatoryList":[{ }],
           "issuer":{}
                
            }
        }
    }
}

Solution 2 :In the issue certificate request body, new field "

...

type" can be added.The possible values for this field can be "

...

STATE" and "

...

ALL".

...

Depending on the value of

...

type, certificate issuer will issue the certificate to the correct set of users(either state teachers or all users)

Request : (Issue Certificate )

{
    "request":{
                  "courseId":"do_2128813877021900801193",
                  "batchId":"0128821148183429120",
                  "state-teacher"type:"YesSTATE"
                  }

}