Hi Team,
We would like to display task lists for different projects in tempo timesheet.
As of now we are using to list the tasks in Adaptive script runner using Rest end point.
Here is the JASON code that we are using below. We are not sure how to display the different projects for task details.
======================
import com.onresolve.scriptrunner.runner.rest.common.CustomEndpointDelegate
import groovy.json.JsonBuilder
import groovy.transform.BaseScript
import javax.ws.rs.core.MultivaluedMap
import javax.ws.rs.core.Response
@BaseScript CustomEndpointDelegate delegate
tempoWorkTask(httpMethod: "GET") { MultivaluedMap queryParams, String body ->
def callbackFn = queryParams.getFirst("callback")
def options = [
values: [
[
value:' '
],
[
key:"Administration[O]",
value:"Administration[O]"
],
[
key:"Bug Fixing[O]",
value:"Bug Fixing[O]"
],
[
key:"Coding[C]",
value:"Coding[C]"
],
[
key:"Data Conversion[O]",
value:"Data Conversion[O]"
],
[
key:"Data Management[O]",
value:"Data Management[O]"
],
[
key:"Design[C]",
value:"Design[C]"
],
[
key:"Documentation[O]",
value:"Documentation[O]"
],
[
key:"Enhancement Development[C]",
value:"Enhancement Development[C]"
],
[
key:"Installation Configuration[C]",
value:"Installation Configuration[C]"
],
[
key:"Meetings[O]",
value:"Meetings[O]"
],
[
key:"Others[O]",
value:"Others[O]"
],
[
key:"Project Planning[O]",
value:"Project Planning[O]"
],
[
key:"Reengineering[O]",
value:"Reengineering[O]"
],
[
key:"Report Development[C]",
value:"Report Development[C]"
],
[
key:"Research[O]",
value:"Research[O]"
],
[
key:"Support and Maintenance[O]",
value:"Support and Maintenance[O]"
],
[
key:"Testing[C]",
value:"Testing[C]"
],
[
key:"Training[O]",
value:"Training[O]"
]
]
]
def resp = """${callbackFn} ( ${new JsonBuilder(options).toPrettyString()} )""".toString()
return Response.ok(resp).build()
}
Susanne Barbara Götz - Susanne.
Currently we are displaying task details like coding, testing,reporting via tempotime sheet.
Here we are using JSON script. this task list is common for all projects. we would like to implement the same in Different projects.
we are using this code using adaptive script runner plug in -rest end point.
I have attached the same in all browsers. please take a look and help me in display this in different fields.
Regards,
Aasha.
Susanne Barbara Götz - Susanne.
Currently we are displaying task details like coding, testing,reporting via tempotime sheet.
Here we are using JSON script. this task list is common for all projects. we would like to implement the same in Different projects.
we are using this code using adaptive script runner plug in -rest end point.
I have attached the same in all browsers. please take a look and help me in display this in different fields.
Regards,
Aasha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Aasha Kathamuthu ,
Please note that custom scripts for dynamic dropdowns are not within the Tempo support, but you can get information about this in the Tempo developers ecosystem on Slack.
To make the dropdown Project specific, you will need to pick up the Issue key of the selected Issue and determine from this information, which Project the Issue belongs to.
You can then select which values should be available for each project by using a switch statement.
Regards,
Susanne
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@ Susanne Barbara Götz - could you please help on this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Aasha Kathamuthu ,
Can you please give us more information about the problem you encounter.
The script you added can be used to populate a dynamic dropdown, but it is not "Project" specific ( it will show the same options, independent to which Project the selected issue belongs).
You might want to check out our Tempo developer community on Slack where you can get assistance from Tempo developers and other users that are building with Tempo. To register, please go to https://www.tempo.io/developers
Regards,
Susanne
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nic Brough [Adaptavist] - could you please help on this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.