I’m trying to use Get Projects activity from Jira with the idea to give me all the projects so I can let user which run the bot to select in which project they want to create a ticket.
But the output of that activity is Project, I’m not able to output them in strings how I can get all the projects or projects key so I can let user select it and pass that variable in create issue and move from there.
To access one you can use output(0) and if you give. Dot after it you will see all the methods…you would have a name and id or key fields which will give you the required value
Output(0). Is what you need to give in a log message or so to check the methods and properties available
How I can print all the projects, because with Output(0).Key for example is returning only 1 project, but I have 2 and that’s because I’m passing (0) if I pass (1) it will return the other one.
EDIT: I think I found away I’ve put the projects in for each and then throw an index to output me for each project the key. Now I need to find a way to put them in multiple items or dropdown somehow for user to be able to select and pass this in the next activity to create ticket.