SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Set default values for new Defect

    Hi,

    I wish to use Workflow to set default values for both Detected in Release and Detected in Cycle when creating a new Defect.

    However, when I set one of these values using Workflow, it blanks the other value. E.g. when I set a value for Detected in Release, it sets Detected in Cycle to blank, and vice versa.

    Is there a way to be able to set both these values?

    The workflow code I am using is in the Bug_New sub:

    currRelease = "Release 1.0"
    currCycle = "Drop 2"

    ' Set default value for "Detected in Release" field
    Bug_Fields("BG_DETECTED_IN_REL").Value = currRelease

    ' Set default value for "Detected in Cycle" field
    Bug_Fields("BG_DETECTED_IN_RCYC").Value = currCycle

    Thanks for any assistance!
    Jill

  2. #2
    Senior Member
    Join Date
    Nov 2008
    Posts
    206
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Set default values for new Defect

    As I know this fields aren't string type. So you should create 2 objects. One for Releases and one for cycles and only then assign them to Defect fields.

    Something like this

    RelFact = TDConnection.ReleaseFactory
    RelList = RelFact.NewList("<Your Filter>")
    Bug_Fields.Field("BG_DETECTED_IN_REL").Value = RelList.Item(1)

    And similar for cycles.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:09 PM.

Copyright BetaSoft Inc.