We use Jira and have an automation rule set up to transfer story information transferred to GitLab. Is there a way to send the Checklist Pro information to GitLab in Gitlab Checklist format?
### Definition of Done
- [ ] Item 1
- [*] Item 2 (done)
- [ ] Item 3
Hi Martin!
I'm from the Checklist for Jira | Entreprise team on Data Center, I believe you are using our app because 7.1.8.10 is one of our version!
There are no existing features that would do this for you.
With Automation you can loop over each checklist item, read their values, and write in the GitLab format based on that. If it's possible to use Smart Values in your automation action that moves the data to GitLab, then you should be able to achieve something.
Here's a quick (untested) example to show you what I'm thinking about:
{{#Checklist}}
- [{{if(checked)}}*{{/}}] {{name}}
{{/}}This could result in something like:
- [] unchecked item
- [*] oh this item is checked
Take a look at our documentation for available smart value properties.
I hope this helps!
Kind regards,
Maxime
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is the HeroCoders checklist that we use so I do not know how that would affect the answer. In our automation, we already have a rule "Create New GitLab Issue in Sprint Backlog" with a Send Web Request of:
...{{GitLabProjectPath}}/issues?title={{issue.key.concat(" ").concat(issue.summary).urlEncode.replace("+", "%20")}}&description={{issue.description.abbreviate(1000000).urlEncode.replace("+", "%20")}}{{AdditionalParameters}}
How would the checklist example be added in so it also goes into the description that goes to GitLab?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Martin,
That's our app indeed!
I unfortunately don't have a fully formulated answer to your question. The web request you are sending uses their REST API for Issue Create.
If I understand correctly, your description needs a ToDo list in it, so you'll need to write it in the necessary format in your &description= URL parameter.
If I were you, I would test out how I can write a static checklist (Item A, Item B, Item C) first, and see what format it needs. Example (I haven't tested):
description=-%20[]%20Item%20A%0A-%20[]%20Item%20B%0A-%20[]%20Item%20C
%20 being a space and %0A being a new line
Then once you get it working, you can try using Smart Values to build it from the checklist. Untested example:
description={{#Checklist}}-%20[{{if(checked)}}*{{/}}]%20{{name}}%0A{{/}}(You would need to keep the issue description too, but beware too long strings since there's a limit in URL parameters, might be better using a HTTP body instead if possible)
Let me know if that helps!
Kind regards,
Maxime
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.