Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated code to create task without trigger #25

Conversation

Vasu1105
Copy link

new_work_item was not creating task if trigger hash is not passed the task can be created with trigger. To achieve this updated code which will set the trigger values only if passed by the user otherwise will create the task without trigger.

Signed-off-by: vasu1105 vasundhara.jagdale@msystechnologies.com

Signed-off-by: vasu1105 <vasundhara.jagdale@msystechnologies.com>
@Vasu1105 Vasu1105 force-pushed the vasundhara/code_to_create_task_without_trigger branch from fe7b268 to d59f59d Compare March 23, 2018 13:42
if trigger[:minutes_interval].to_i > 0
repetitionPattern.Interval = "PT#{trigger[:minutes_interval]||0}M"
end
tmp = trigger[:type]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could use a more descriptive name.

@btm btm merged commit 2f6fbe2 into chef:ole Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants